Sha256: 614367ae24bd0f6323ddf718485756dc75a51780eb3c00106ebc871a11aee91c

Contents?: true

Size: 296 Bytes

Versions: 29

Compression:

Stored size: 296 Bytes

Contents

require 'haml'
require 'flapjack/utility'

module HamlViewHelper

  TEMPLATE_PATH = File.dirname(__FILE__) +
      '/../../lib/flapjack/gateways/web/views/'

  include Flapjack::Utility

  def render_haml(file, scope)
    Haml::Engine.new(File.read(TEMPLATE_PATH + file)).render(scope)
  end

end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
flapjack-0.7.18 spec/support/haml_view_helper.rb
flapjack-0.7.17 spec/support/haml_view_helper.rb
flapjack-0.7.16 spec/support/haml_view_helper.rb
flapjack-0.7.15 spec/support/haml_view_helper.rb
flapjack-0.7.14 spec/support/haml_view_helper.rb
flapjack-0.7.13 spec/support/haml_view_helper.rb
flapjack-0.7.12 spec/support/haml_view_helper.rb
flapjack-0.7.11 spec/support/haml_view_helper.rb
flapjack-0.7.10 spec/support/haml_view_helper.rb
flapjack-0.7.9 spec/support/haml_view_helper.rb
flapjack-0.7.8 spec/support/haml_view_helper.rb
flapjack-0.7.7 spec/support/haml_view_helper.rb
flapjack-0.7.6 spec/support/haml_view_helper.rb
flapjack-0.7.5 spec/support/haml_view_helper.rb
flapjack-0.7.4 spec/support/haml_view_helper.rb
flapjack-0.7.3 spec/support/haml_view_helper.rb
flapjack-0.7.2 spec/support/haml_view_helper.rb
flapjack-0.7.1 spec/support/haml_view_helper.rb
flapjack-0.7.0 spec/support/haml_view_helper.rb
flapjack-0.6.61 spec/support/haml_view_helper.rb