Sha256: 65516709354786f7d76ae106a0816f7d98c1c7a914d052152cc0f376c7bfcd4a

Contents?: true

Size: 722 Bytes

Versions: 2

Compression:

Stored size: 722 Bytes

Contents

#                                                                          
# File 'haml.rb' created on 04 ago 2008 at 17:05:24.                    
#
# See 'dokkit.rb' or +LICENSE+ for licence information.                      
#                                                                          
# (C)2006-2008 Andrea Fazzi <andrea.fazzi@alca.le.it> (and contributors). 
#                                                                          

require 'haml'

module Dokkit
  module Filter

    class Haml

      def initialize(document)
        @document = document
      end

      def filter(text)
        ::Haml::Engine.new(text).to_html(@document.get_binding)
      end      

    end    


  end
end



Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dokkit-0.4.2 lib/dokkit/filters/haml.rb
dokkit-0.4.3 lib/dokkit/filters/haml.rb