Skip to content

Commit

Permalink
Added "filename" option to jade.compile as it is required to use "inc…
Browse files Browse the repository at this point in the history
…lude"
  • Loading branch information
jp-a committed Oct 20, 2011
1 parent a3b33ee commit 07a2ed0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/frontend/asset/templates.coffee
Expand Up @@ -27,7 +27,7 @@ compile =

jade: (path, source) ->
try
jade.compile(source)()
jade.compile(source, {filename: "#{SS.root}/#{path}"})()
catch e
console.error 'Unable to render jade template: ' + path
throw new Error(e)
Expand Down

0 comments on commit 07a2ed0

Please sign in to comment.