Sha256: 8e96412242595b4122bbec397ec9f5c7e7168c2dd53b24ff7193b60ffda0d1ab

Contents?: true

Size: 369 Bytes

Versions: 2

Compression:

Stored size: 369 Bytes

Contents

# $Id: haml.rb 68 2007-12-09 07:45:37Z tim_pease $

try_require 'haml'

# Render text via the Haml library
Webby::Filters.register :haml do |input, cursor|
  opts = cursor.page.haml_options || {}
  opts[:locals] ||= {}
  opts[:locals].merge!(
    :page => cursor.renderer.page,
    :pages => cursor.renderer.pages
  )
  Haml::Engine.new(input, opts).to_html
end

# EOF

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
webby-0.7.1 lib/webby/filters/haml.rb
webby-0.7.0 lib/webby/filters/haml.rb