Sha256: 4384cabd29eb0f7fc9811e8dca311c8ad00817be96a066fe56efc888168123d5

Contents?: true

Size: 265 Bytes

Versions: 1

Compression:

Stored size: 265 Bytes

Contents

try_require 'haml'

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

# EOF

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
webby-0.8.4 lib/webby/filters/haml.rb