Sha256: b8b5d9b661975d284595de2e0dde65ca437b446accf5c83fed0f493b54d1aacb

Contents?: true

Size: 460 Bytes

Versions: 18

Compression:

Stored size: 460 Bytes

Contents

module Padrino
  module Rendering
    class SlimTemplate < Slim::Template
      include SafeTemplate

      def precompiled_preamble(locals)
        "__in_slim_template = true\n" << super
      end
    end
  end
end

Tilt.prefer(Padrino::Rendering::SlimTemplate, :slim)

Padrino::Rendering.engine_configurations[:slim] = {
  :generator => Temple::Generators::RailsOutputBuffer,
  :buffer => "@_out_buf",
  :use_html_safe => true,
  :disable_capture => true,
}

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
padrino-helpers-0.12.9 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.12.8.1 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.13.3 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.12.8 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.12.7 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.12.6 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.13.2 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.13.1 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.13.1.beta1 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.13.0 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.13.0.beta3 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.13.0.beta2 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.12.5 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.13.0.beta1 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.12.4 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.12.3 lib/padrino/rendering/slim_template.rb
padrino-helpers-cj-0.12.2 lib/padrino/rendering/slim_template.rb
padrino-helpers-0.12.2 lib/padrino/rendering/slim_template.rb