Module: Serenity::Generator

Defined in:
lib/serenity/generator.rb

Instance Method Summary collapse

Instance Method Details

#helperObject



8
9
10
# File 'lib/serenity/generator.rb', line 8

def helper
  @helper ||= Serenity::Helper.new
end

#render_odt(template_path, output_path = output_name(template_path)) ⇒ Object



3
4
5
6
# File 'lib/serenity/generator.rb', line 3

def render_odt template_path, output_path = output_name(template_path)
  template = Template.new template_path, output_path
  template.process binding
end