Sha256: 3a9d51f66567bccee517e2c7dfb77bddef5a7decf03827e85d047d71fcc97620
Contents?: true
Size: 248 Bytes
Versions: 1
Compression:
Stored size: 248 Bytes
Contents
module SimpleSite class HamlContext def render_file filename contents = File.read(filename) Haml::Engine.new(contents).render end def partial partial_name render_file "_src/_#{partial_name}.haml" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_site-0.0.3 | lib/simple_site/haml_context.rb |