Sha256: fa3b192c8ee6116de4ebc41dd35c87a1f8d8fb466010c65d0fae8616bfeb246a

Contents?: true

Size: 514 Bytes

Versions: 16

Compression:

Stored size: 514 Bytes

Contents

require 'temple'
require 'hamlit/compiler'
require 'hamlit/html'
require 'hamlit/parser'
require 'hamlit/temple'

module Hamlit
  class Engine < Temple::Engine
    define_options(
      generator:   Temple::Generators::ArrayBuffer,
      format:      :html,
      attr_quote:  "'",
      escape_html: true,
    )

    use Parser
    use Compiler
    use HTML
    filter :Escapable
    filter :ControlFlow
    filter :MultiFlattener
    filter :StaticMerger
    use :Generator, -> { options[:generator] }
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
hamlit-1.7.2 lib/hamlit/engine.rb
hamlit-1.7.1 lib/hamlit/engine.rb
hamlit-1.7.0 lib/hamlit/engine.rb
hamlit-1.6.7 lib/hamlit/engine.rb
hamlit-1.6.6 lib/hamlit/engine.rb
hamlit-1.6.5 lib/hamlit/engine.rb
hamlit-1.6.4 lib/hamlit/engine.rb
hamlit-1.6.3 lib/hamlit/engine.rb
hamlit-1.6.2 lib/hamlit/engine.rb
hamlit-1.6.1 lib/hamlit/engine.rb
hamlit-1.6.0 lib/hamlit/engine.rb
hamlit-1.5.9 lib/hamlit/engine.rb
hamlit-1.5.8 lib/hamlit/engine.rb
hamlit-1.5.7 lib/hamlit/engine.rb
hamlit-1.5.6 lib/hamlit/engine.rb
hamlit-1.5.5 lib/hamlit/engine.rb