Permalink
Browse files

fix bug with _locals

  • Loading branch information...
1 parent b715104 commit 193d472a97a15addd8547bcb934188f96836adfa vol4ok committed Sep 5, 2012
Showing with 115 additions and 120 deletions.
  1. +1 −1 muskup.coffee
  2. +113 −118 muskup.js
  3. +1 −1 package.json
View
@@ -65,7 +65,7 @@ render = (path, opt, fn) ->
return fn(err) if (err)
try
locals = opt.settings.locals or {}
- locals[k] = v for k,v of opt.locals
+ locals[k] = v for k,v of opt._locals
tmpl = hogan.compile(str, opt)
result = tmpl.render(locals, partials)
if layout
View
231 muskup.js

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "muskup",
- "version": "0.1.0",
+ "version": "0.1.1",
"description": "Mustache + coffeekup template engine for express 3.x. Support partials and layout",
"main": "muskup.js",
"scripts": {

0 comments on commit 193d472

Please sign in to comment.