Nerdiest Political Manifesto

    muskup

    0.1.1 • Public • Published

    MUSKUP

    Mustache and coffeekup template engine for express 3.x.

    Use twitter's hogan.js engine and coffeekup.

    Supports

    • partials
    • layout
    • caching
    • coffeekup precompilation

    Install

    npm install muskup

    Usage

    Setup:

    muskup = require('muskup')
    app.set('view engine', 'html')
    app.set('layout', 'layout.ck') # rendering by default
    app.set('partials', head: "head.ck") # partails using by default on all pages
    app.enable('view cache')
    app.engine 'html', muskup
    app.engine 'ck', muskup
    

    Rendering template:

    app.get '/', (req,res)->
      res.locals = what: 'World'
      res.render "index", partials: {temp: 'temp.ck'}
    

    (will render layout.ck with index.html, head.ck and temp.ck partials)

    License

    MIT License

    Keywords

    none

    Install

    npm i muskup

    DownloadsWeekly Downloads

    5

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • vol4ok