Sha256: a15f3739374ced2059274979b353ec7928cbf10f1278c62159d28c154e61d07c
Contents?: true
Size: 345 Bytes
Versions: 4
Compression:
Stored size: 345 Bytes
Contents
module Nanoc::Filter::Haml class HamlFilter < Nanoc::Filter identifiers :haml def run(content) nanoc_require 'haml' options = @page.haml_options || {} options[:locals] = { :page => @page, :pages => @pages, :config => @config, :site => @site } ::Haml::Engine.new(content, options).to_html end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nanoc-2.0.2 | lib/nanoc/filters/haml.rb |
nanoc-2.0.3 | lib/nanoc/filters/haml.rb |
nanoc-2.0 | lib/nanoc/filters/haml.rb |
nanoc-2.0.1 | lib/nanoc/filters/haml.rb |