Guest User

Untitled

a guest
Nov 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. app.register(
  2. '.html'
  3. compile: (source, options) ->
  4.  
  5. if typeof source isnt 'string' then source else
  6.  
  7. (options) ->
  8.  
  9. mustache.to_html(
  10. source
  11. options.locals || {}
  12. options.partials || {}
  13. )
  14.  
  15. render: (template, options) -> @compile(template, options)(options)
  16. )
Add Comment
Please, Sign In to add comment