Marek Piasecki
2 years ago
4 changed files with 29 additions and 29 deletions
@ -0,0 +1,17 @@ |
|||
import compact from 'lodash.compact' |
|||
import fromPairs from 'lodash.frompairs' |
|||
import chunk from 'lodash.chunk' |
|||
import includes from 'lodash.includes' |
|||
import reject from 'lodash.reject' |
|||
import toPairs from 'lodash.topairs' |
|||
import flatten from 'lodash.flatten' |
|||
|
|||
export helpers = { |
|||
compact: compact |
|||
fromPairs: fromPairs |
|||
chunk: chunk |
|||
includes: includes |
|||
reject: reject |
|||
toPairs: toPairs |
|||
flatten: flatten |
|||
} |
@ -1,2 +1 @@ |
|||
import "pro-router/standalone" |
|||
import "./main.imba" |
@ -0,0 +1,11 @@ |
|||
import "pro-router/standalone" # standalone operates on "/#/" hash style url; for regular "/" url use: "pro-router/router" |
|||
import "./router_tag.imba" |
|||
import { helpers } from "./helpers.imba" |
|||
|
|||
R.init helpers: helpers, root: 'home', render: imba.commit |
|||
|
|||
tag view-home |
|||
<self><h1> 'Imba2 on Pro Router is working...' |
|||
|
|||
tag view-not_found |
|||
<self><h1> "Page not found :(" |
Loading…
Reference in new issue