class RgGen::Core::OutputBase::ERBEngine
Public Instance Methods
file_extension()
click to toggle source
# File lib/rggen/core/output_base/erb_engine.rb, line 7 def file_extension :erb end
parse_template(path)
click to toggle source
# File lib/rggen/core/output_base/erb_engine.rb, line 11 def parse_template(path) Erubi::Engine.new(File.binread(path), filename: path) end
render(context, template)
click to toggle source
# File lib/rggen/core/output_base/erb_engine.rb, line 15 def render(context, template) context.instance_eval(template.src, template.filename, 1) end