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