Top Level Namespace

Defined Under Namespace

Modules: Hashup

Instance Method Summary collapse

Instance Method Details

#render_file(filename) ⇒ Object



70
71
72
73
74
# File 'lib/hashup/site.rb', line 70

def render_file(filename)
  ss = Hashup::Site.new
  infos = OpenStruct.new(ss.load_infos)
  Slim::Template.new("themes/_layout/#{filename}").render(infos)
end