class GemHadar::TemplateCompiler
def compile(src, dst)
-
dst
(String
) -- the path to the destination file where the rendered content will be written -
src
(String
) -- the path to the source ERB template file
def compile(src, dst) template = File.read(src) File.open(dst, 'w') do |output| erb = ERB.new(template, nil, '-') erb.filename = src.to_s output.write erb.result binding end end