Core libraries and tools part for pro architecture. It's a submodule - use from this perspective http://git.maniak.pro/madmaniak/pro
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.
13 lines
285 B
13 lines
285 B
global:Router = require('pro-router')
|
|
require './ref/ref'
|
|
require './switch/switch'
|
|
require './not_found/not_found'
|
|
|
|
tag router
|
|
|
|
def setup
|
|
@r = R
|
|
|
|
def render
|
|
self:__:A = self:__:A || {}
|
|
<self> ( self:__:A[@r:view] || self:__:A[@r:view] = global:_T[@r:view.toUpperCase]() ).end
|
|
|