lib/hx/output/liquidtemplate.rb in hx-0.4.1 vs lib/hx/output/liquidtemplate.rb in hx-0.5.0
- old
+ new
@@ -83,15 +83,17 @@
output_path = "#{path}.#{@extension}"
else
output_path = path
end
output_entry = entry.dup
- output_entry['content'] = @template.render(
- 'now' => Time.now,
- 'options' => @options,
- 'path' => path,
- 'entry' => entry
- )
+ output_entry['content'] = Hx::LazyContent.new do
+ @template.render(
+ 'now' => Time.now,
+ 'options' => @options,
+ 'path' => path,
+ 'entry' => entry
+ )
+ end
yield output_path, output_entry
end
self
end
end