Imba integration with pro-router.js
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
295 B

global:Router = require('pro-router')
require './ref/ref'
require './switch/switch'
require './not_found/not_found'
tag router
def setup
@r = R
@t = Imba:TAGS
def render
self:__:A = self:__:A || {}
<self> ( self:__:A[@r:view] || self:__:A[@r:view] = @t[@r:view.toUpperCase]() ).end