Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
CoffeeScript JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
example
.gitignore
.npmignore
MIT-LICENSE
README.md
coffeekup.coffee
coffeekup.js
muskup.coffee
muskup.js
package.json

README.md

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

Something went wrong with that request. Please try again.