Module: Rakyll::Compiler::Apply
Instance Method Summary collapse
Instance Method Details
#apply(template_name) ⇒ Object
4 5 6 7 |
# File 'lib/rakyll/compiler.rb', line 4 def apply(template_name) template_string = File.read('templates/' + template_name) @body = ERB.new(template_string).result(binding) end |