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