Skip to content

michaelchance/isomagic-pager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 in res.templateid
  • [builder] setdata
    • data: some data object to be attached to res.data
  • showpage - translates res.templateid with res.data using IsoMagic-template, and puts the content into the "body" specified by bodySelector

TLC Formats

none included

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published