lib/brochure/template.rb in brochure-0.5.1 vs lib/brochure/template.rb in brochure-0.5.2
- old
+ new
@@ -6,10 +6,13 @@
@app = app
@path = path
end
def template
- @template ||= Tilt.new(path, nil, :outvar => '@_out_buf') if engine_extension
+ if engine_extension
+ options = app.template_options[engine_extension] || nil
+ @template ||= Tilt.new(path, options, :outvar => '@_out_buf')
+ end
end
def basename
@basename ||= File.basename(path)
end