Sha256: 53b062526ec9aea0dc9182ccedd6adc841ebf65be802fc07028d165ceb0ad53c

Contents?: true

Size: 592 Bytes

Versions: 3

Compression:

Stored size: 592 Bytes

Contents

# frozen_string_literal: true

require "temple"

module Hanami
  class View
    module ERB
      # Hanami::View ERB engine.
      #
      # @api private
      # @since 2.0.0
      class Engine < Temple::Engine
        define_options capture_generator: Hanami::View::HTMLSafeStringBuffer

        use Parser
        use Filters::Block
        use Filters::Trimming
        filter :Escapable, use_html_safe: true
        filter :StringSplitter
        filter :StaticAnalyzer
        filter :MultiFlattener
        filter :StaticMerger
        generator :ArrayBuffer
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hanami-view-2.1.0.rc1 lib/hanami/view/erb/engine.rb
hanami-view-2.1.0.beta2 lib/hanami/view/erb/engine.rb
hanami-view-2.1.0.beta1 lib/hanami/view/erb/engine.rb