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.
15 lines
295 B
15 lines
295 B
7 years ago
|
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
|