0.0.9 • Published 9 years ago
isomagic-pager v0.0.9
IsoMagic-simpleapp
IsoMagic extension that adds simple app capabilities
uses IsoMagic-template to translate a templateid, from res.templateid
with data from res.data
, and apply it to
the app 'body', specified by the config bodySelector
option
Config
bodySelector
(String) default: "body" a jQuery selector for where the translated template will be applied if"simpleapp#showpage"
is called
Middleware
checkpage
- checks the "body" for the current page against req.originalUrl. If we're already there, halts the middleware chain- builder
usetemplate
*templateid
: a templateid to be stored inres.templateid
- builder
setdata
*data
: some data object to be attached tores.data
showpage
- translatesres.templateid
withres.data
using IsoMagic-template, and puts the content into the "body" specified by bodySelector
TLC Formats
none included