Sha256: ce7c628393d3ea1e0412bb02b934240d1aacc1104ffea06e1a9df65e91a2533a
Contents?: true
Size: 420 Bytes
Versions: 3
Compression:
Stored size: 420 Bytes
Contents
module Nanoc::Filters class Haml < Nanoc::Filter identifiers :haml def run(content) require 'haml' # Get options options = @obj_rep.attribute_named(:haml_options) || {} options[:filename] = filename # Create context context = ::Nanoc::Extra::Context.new(assigns) # Get result ::Haml::Engine.new(content, options).render(context, assigns) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nanoc-2.2 | lib/nanoc/filters/haml.rb |
nanoc-2.2.1 | lib/nanoc/filters/haml.rb |
nanoc-2.2.2 | lib/nanoc/filters/haml.rb |