Sha256: b347a591e94d92e5f1b3a4a959699773c4aeaa95b0925d21b4ebc52b3a6d1712

Contents?: true

Size: 247 Bytes

Versions: 1

Compression:

Stored size: 247 Bytes

Contents

class 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.2 lib/simple_site/haml_context.rb