Files
buuh/examples/mailbox/elements/pathname.js
T

12 lines
280 B
JavaScript
Raw Normal View History

2016-05-13 16:48:46 +07:00
const pathname = require('pathname-match')
2016-06-30 08:18:07 -07:00
const html = require('../../../html')
2016-05-13 16:48:46 +07:00
module.exports = function (params, state, send) {
2016-05-23 04:00:29 +09:00
const location = state.app.location
2016-06-30 08:18:07 -07:00
return html`
2016-05-13 16:48:46 +07:00
<span class="fl mt4 w-100 f4 b">
2016-05-23 04:00:29 +09:00
URL: ${pathname(location) || '/'}
2016-05-13 16:48:46 +07:00
</span>
`
}