Sha256: 2cd3a1bed095c9ff766ce8f422a6e7426604702af37fee8531c26b934b01892e

Contents?: true

Size: 285 Bytes

Versions: 6

Compression:

Stored size: 285 Bytes

Contents

# $Id: haml.rb 112 2008-01-26 05:31:48Z tim_pease $

try_require 'haml'

# Render text via the Haml library
Webby::Filters.register :haml do |input, cursor|
  opts = cursor.page.haml_options || {}
  b = cursor.renderer.get_binding
  Haml::Engine.new(input, opts).to_html(b)
end

# EOF

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
webby-0.7.3 lib/webby/filters/haml.rb
webby-0.7.2 lib/webby/filters/haml.rb
webby-0.7.4 lib/webby/filters/haml.rb
webby-0.8.0 lib/webby/filters/haml.rb
webby-0.8.1 lib/webby/filters/haml.rb
webby-0.8.2 lib/webby/filters/haml.rb