Sha256: 2d8ceab394138d6b0334c5dea066499bce4c5b3f62a5f085da0c6b1a5ea0ffcc
Contents?: true
Size: 952 Bytes
Versions: 3
Compression:
Stored size: 952 Bytes
Contents
# frozen_string_literal: true require 'temple' require 'hamlit/parser' require 'hamlit/compiler' require 'hamlit/escapable' require 'hamlit/force_escapable' require 'hamlit/html' require 'hamlit/string_splitter' require 'hamlit/static_analyzer' module Hamlit class Engine < Temple::Engine define_options( generator: Temple::Generators::ArrayBuffer, format: :html, attr_quote: "'", escape_html: true, escape_attrs: true, autoclose: %w(area base basefont br col command embed frame hr img input isindex keygen link menuitem meta param source track wbr), filename: "", ) use Parser use Compiler use HTML use StringSplitter use StaticAnalyzer use Escapable use ForceEscapable filter :ControlFlow filter :MultiFlattener filter :StaticMerger use :Generator, -> { options[:generator] } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hamlit-2.7.1 | lib/hamlit/engine.rb |
hamlit-2.7.0 | lib/hamlit/engine.rb |
hamlit-2.6.2 | lib/hamlit/engine.rb |