Sha256: 54a702da02c2ece6d1e20cc8e161af7de5cb705ae017ce4829585d23cd86565c

Contents?: true

Size: 383 Bytes

Versions: 5

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true
require 'action_view'

module Haml
  class ErubiTemplateHandler < ActionView::Template::Handlers::ERB::Erubi

    def initialize(*args, &blk)
      @newline_pending = 0
      super
    end
  end

  class SafeErubiTemplate < Tilt::ErubiTemplate
    def prepare
      @options.merge! engine_class: Haml::ErubiTemplateHandler
      super
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/haml-5.0.4/lib/haml/helpers/safe_erubi_template.rb
haml-5.0.4 lib/haml/helpers/safe_erubi_template.rb
haml-5.0.3 lib/haml/helpers/safe_erubi_template.rb
haml-5.0.2 lib/haml/helpers/safe_erubi_template.rb
haml-5.0.1 lib/haml/helpers/safe_erubi_template.rb