Sha256: 067b5fd304804f37a661cb916db79370a06e441b8692fff702275d8b5c487fe5

Contents?: true

Size: 713 Bytes

Versions: 4

Compression:

Stored size: 713 Bytes

Contents

#                                                                          
# File 'erb.rb' created on 23 lug 2008 at 15:40:59.                    
#
# See 'dokkit.rb' or +LICENSE+ for licence information.                      
#                                                                          
# (C)2006-2008 Andrea Fazzi <andrea.fazzi@alca.le.it> (and contributors). 
#                                                                          

require 'erb'

module Dokkit
  module Filter

    class ERB
      
      def initialize(document)
        @document = document
      end
      
      def filter(text)
        ::ERB.new(text).result(@document.get_binding)
      end
      
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dokkit-0.4.2 lib/dokkit/filters/erb.rb
dokkit-0.4.4 lib/dokkit/filters/erb.rb
dokkit-0.5.0 lib/dokkit/filters/erb.rb
dokkit-0.4.3 lib/dokkit/filters/erb.rb