Sha256: 98d8bed75a1d080de49a669aa50121cb63c29ee28d694dc6b19da24433eae2d8
Contents?: true
Size: 442 Bytes
Versions: 4
Compression:
Stored size: 442 Bytes
Contents
module Nanoc::LayoutProcessor::Haml class HamlLayoutProcessor < Nanoc::LayoutProcessor identifiers :haml extensions '.haml' def run(layout) nanoc_require 'haml' options = @page[:haml_options] || {} assigns = @other_assigns.merge({ :page => @page, :pages => @pages, :config => @config, :site => @site }) options[:locals] = assigns ::Haml::Engine.new(layout, options).to_html end end end
Version data entries
4 entries across 4 versions & 1 rubygems