Sha256: 1cfe6a9141ba8a3af0147941271aace9d632c526f9c532971a728480d6b77778

Contents?: true

Size: 475 Bytes

Versions: 5

Compression:

Stored size: 475 Bytes

Contents

begin
  require 'slim'

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

    class Slim::Template
      include Padrino::Rendering::SafeTemplate

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

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
padrino-helpers-0.12.1 lib/padrino/rendering/extensions/slim.rb
padrino-core-0.12.0 lib/padrino-core/application/rendering/extensions/slim.rb
padrino-core-0.12.0.rc3 lib/padrino-core/application/rendering/extensions/slim.rb
padrino-core-0.12.0.rc2 lib/padrino-core/application/rendering/extensions/slim.rb
padrino-core-0.12.0.rc1 lib/padrino-core/application/rendering/extensions/slim.rb