lib/stack/template.rb in stack-0.0.5 vs lib/stack/template.rb in stack-0.0.6

- old
+ new

@@ -19,13 +19,10 @@ ext = File.extname(path) self.original_extension = ext[1, ext.length] self.extension = self.original_extension - puts self.original_extension - puts self.extension - read end end def read @@ -38,25 +35,25 @@ _payload = template_payload.deep_merge(_payload) layout_name = _payload[:layout] if (layout_name and do_layout) - puts "has layout! #{layout_name}" - # get layout _tpl_payload = self.generator.layouts[layout_name].template_payload _tpl_payload.delete(:layout) + _tpl_payload.delete(:template) + _tpl_payload.delete(:generator) - puts _tpl_payload.inspect - puts "\n" + #puts _tpl_payload.inspect + #puts "\n" _payload = _payload.merge(_tpl_payload) end - puts _payload.inspect - puts "\n\n" + #puts _payload.inspect + #puts "\n\n" - content = Liquid::Template.parse(self.raw).render(Mash.new(_payload)) + content = Liquid::Template.parse(self.raw).render(Mash.new(_payload), Stack::Filters::Register.extensions) content = self.transform(content) if (layout_name and do_layout) _payload.delete(:layout) begin \ No newline at end of file