Sha256: 508ed94398cbf5354f4b2502bb923189b4f194535c224a4cd4840f5bdca14a2c

Contents?: true

Size: 171 Bytes

Versions: 1

Compression:

Stored size: 171 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
simple_site-0.0.1 lib/simple_site/haml_helper.rb