1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/lib/hamlit/engine.rb
2015-03-16 06:39:56 +09:00

22 lines
467 B
Ruby

require 'temple'
require 'hamlit/attribute_compiler'
require 'hamlit/script_compiler'
require 'hamlit/parser'
module Hamlit
class Engine < Temple::Engine
define_options generator: Temple::Generators::ArrayBuffer
use Parser
use ScriptCompiler
use AttributeCompiler
html :Fast
filter :Escapable
filter :ControlFlow
filter :MultiFlattener
filter :StaticMerger
use :Generator do
options[:generator].new
end
end
end