Skip to content

Commit

Permalink
Merge pull request #10 from dizlexik/master
Browse files Browse the repository at this point in the history
global and template contexts are now merged
  • Loading branch information
cstivers78 committed Sep 13, 2013
2 parents e7d6f92 + 8c262aa commit 400a16d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/bliss.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/bliss.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class Bliss
compile: (source,options) ->
self = @
options = defaults options, @options
options.context = defaults options.context @options.context
context = options.context

context.render = (filename,args...) ->
Expand Down Expand Up @@ -69,6 +70,7 @@ class Bliss
filename: filename,
ext: if (p=filename.indexOf('.')) >= 0 then filename[p..] else ''
}
options.context = defaults options.context @options.context

filepath = filename
stat = undefined
Expand Down

0 comments on commit 400a16d

Please sign in to comment.