Sha256: eb4cb1e8fbf512796015a35c2175a6edb484a2b81907e2b80769946614e59575
Contents?: true
Size: 426 Bytes
Versions: 3
Compression:
Stored size: 426 Bytes
Contents
# typed: false # frozen_string_literal: true require 'haml' require 'frontman/renderers/renderer' module Frontman class HamlRenderer < Renderer def initialize Haml::Options.defaults[:format] = :html5 super end def compile(layout) Haml::Engine.new(layout) end def render_content(compiled, content, scope, _data) compiled.render(scope.get_binding) { content } end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
frontman-ssg-0.0.4 | lib/frontman/renderers/haml_renderer.rb |
frontman-ssg-0.0.3 | lib/frontman/renderers/haml_renderer.rb |
frontman-ssg-0.0.2 | lib/frontman/renderers/haml_renderer.rb |