Sha256: 9b7cc9c978cb2e466fedebcbb413f391c091bf92f104b3b53c60544025e6352a
Contents?: true
Size: 544 Bytes
Versions: 2
Compression:
Stored size: 544 Bytes
Contents
require 'haml' require 'haml/engine' module StaticMatic module TemplateHandlers class Haml < ActionView::TemplateHandler include ActionView::TemplateHandlers::Compilable def compile(template, local_assigns = {}) options = StaticMatic::Config[:haml_options].dup options[:filename] = template.filename ::Haml::Engine.new(template.source, options).send(:precompiled_with_ambles, []) end end end end ActionView::Template.register_template_handler(:haml, StaticMatic::TemplateHandlers::Haml)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tdreyno-staticmatic-2.0.3 | lib/staticmatic/template_handlers/haml.rb |
tdreyno-staticmatic-2.1.0 | lib/staticmatic/template_handlers/haml.rb |