Sha256: 94a52d709343712d7be3738237abb4806cbccefd47133141fe07a083e8e2b097
Contents?: true
Size: 399 Bytes
Versions: 4
Compression:
Stored size: 399 Bytes
Contents
# encoding: utf-8 module Nanoc3::Filters class Haml < Nanoc3::Filter def run(content, params={}) require 'haml' # Get options options = params.merge(:filename => filename) # Create context context = ::Nanoc3::Context.new(assigns) # Get result ::Haml::Engine.new(content, options).render(context, assigns) { assigns[:content] } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
nanoc3-3.1.0b1 | lib/nanoc3/filters/haml.rb |
nanoc3-3.1.0a3 | lib/nanoc3/filters/haml.rb |
nanoc3-3.1.0a2 | lib/nanoc3/filters/haml.rb |
nanoc3-3.1.0a1 | lib/nanoc3/filters/haml.rb |