Sha256: a6d591c0069c8a30a3cac1ffdbdb32863517918b2f068c6d6c60f37b5ca97bd5
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
require 'temple' require 'faml/compiler' require 'faml/html' require 'faml/newline' require 'haml_parser/parser' module Faml class Engine < Temple::Engine define_options( generator: Temple::Generators::ArrayBuffer, filename: nil, ) use HamlParser::Parser use Compiler use Html filter :Escapable filter :ControlFlow filter :MultiFlattener use Newline filter :StaticMerger use :Generator do options[:generator].new(options.to_hash.reject {|k,v| !options[:generator].options.valid_key?(k) }) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faml-0.3.1 | lib/faml/engine.rb |
faml-0.3.0 | lib/faml/engine.rb |