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