Permalink
Browse files

Fix partials for Rails

  • Loading branch information...
1 parent e4eda0f commit bb2dfe69c1ac2f6d5fa27d849214996a7d71ce45 @skogsmaskin skogsmaskin committed Feb 14, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/petroglyph/template.rb
View
4 lib/petroglyph/template.rb
@@ -31,7 +31,7 @@ class PetroglyphHandler < TemplateHandler
def compile(template) %{
::Petroglyph::Engine.new(#{template.source.inspect}).
- render(self, assigns.merge(local_assigns))
+ render(self, assigns.merge(local_assigns), template.filename)
} end
end
end
@@ -54,7 +54,7 @@ def self.call(template)
end
%{ ::Petroglyph::Engine.new(#{source.inspect}).
- render(self, assigns.merge(local_assigns)) }
+ render(self, assigns.merge(local_assigns), template.identifier) }
end # call
end # petroglyph class
end # handlers

0 comments on commit bb2dfe6

Please sign in to comment.