Sha256: e89ddff74007b97e7f64f7d40ab9d2c5ee865bb112cc13b6516253cc8b8712b9

Contents?: true

Size: 264 Bytes

Versions: 11

Compression:

Stored size: 264 Bytes

Contents

require 'tilt'
require 'fast_haml/engine'

module FastHaml
  class Tilt < Tilt::Template
    def prepare
      @code = Engine.new(options).call(data)
    end

    def precompiled_template(locals = {})
      @code
    end
  end

  ::Tilt.register(Tilt, 'haml')
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fast_haml-0.1.10 lib/fast_haml/tilt.rb
fast_haml-0.1.9 lib/fast_haml/tilt.rb
fast_haml-0.1.8 lib/fast_haml/tilt.rb
fast_haml-0.1.7 lib/fast_haml/tilt.rb
fast_haml-0.1.6 lib/fast_haml/tilt.rb
fast_haml-0.1.5 lib/fast_haml/tilt.rb
fast_haml-0.1.4 lib/fast_haml/tilt.rb
fast_haml-0.1.3 lib/fast_haml/tilt.rb
fast_haml-0.1.2 lib/fast_haml/tilt.rb
fast_haml-0.1.1 lib/fast_haml/tilt.rb
fast_haml-0.1.0 lib/fast_haml/tilt.rb