Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- app.register(
- '.html'
- compile: (source, options) ->
- if typeof source isnt 'string' then source else
- (options) ->
- mustache.to_html(
- source
- options.locals || {}
- options.partials || {}
- )
- render: (template, options) -> @compile(template, options)(options)
- )
Add Comment
Please, Sign In to add comment