Sha256: b28c7815200a54a168f701b60048c5ebb7cc14ba505f9dd13f5b2f6fe2687f46

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

require 'slim'
require 'slim/logic_less'
require 'slim/translator'
require 'slim/grammar'
require 'minitest/autorun'

Slim::Engine.after  Slim::Parser, Temple::Filters::Validator, :grammar => Slim::Grammar
Slim::Engine.before :Pretty, Temple::Filters::Validator
Slim::Engine.set_default_options :tr => false, :logic_less => false

module Helper
  def render(source, options = {}, &block)
    Slim::Template.new(options) { source }.render(self, &block)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
slim-1.3.3 test/literate/helper.rb