Sha256: dfd317b7d035516ac4aaeeeb68787e3116ccf0f6a4f87940c37b8b6325fc5507

Contents?: true

Size: 402 Bytes

Versions: 6

Compression:

Stored size: 402 Bytes

Contents

# frozen_string_literal: true

require "tilt/template"
require "erbse"

module Hanami
  class View
    module Tilt
      # Tilt template class copied from cells-erb gem
      class ErbseTemplate < ::Tilt::Template
        def prepare
          @template = ::Erbse::Engine.new
        end

        def precompiled_template(_locals)
          @template.call(data)
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hanami-view-2.0.0.alpha8 lib/hanami/view/tilt/erbse.rb
hanami-view-2.0.0.alpha7 lib/hanami/view/tilt/erbse.rb
hanami-view-2.0.0.alpha6 lib/hanami/view/tilt/erbse.rb
hanami-view-2.0.0.alpha5 lib/hanami/view/tilt/erbse.rb
hanami-view-2.0.0.alpha3 lib/hanami/view/tilt/erbse.rb
hanami-view-2.0.0.alpha2 lib/hanami/view/tilt/erbse.rb