Sha256: 7200ba87b7b33643df2a360bc49b3b58d59d281d0e1cc0ebacd50efccb118464

Contents?: true

Size: 1.15 KB

Versions: 6

Compression:

Stored size: 1.15 KB

Contents

module Skim
  class Engine < Temple::Engine
    set_default_options :pretty => false,
                        :sort_attrs => true,
                        :attr_wrapper => '"',
                        :attr_delimiter => {'class' => ' '},
                        :remove_empty_attrs => true,
                        :generator => Temple::CoffeeScript::Generator,
                        :default_tag => 'div',
                        :use_asset => false

    use Slim::Parser, :file, :tabsize, :encoding, :default_tag
    use Slim::EmbeddedEngine, :enable_engines, :disable_engines, :pretty
    use Slim::Interpolation
    use Skim::Sections, :sections
    use Skim::Compiler, :disable_capture, :attr_delimiter
    use Temple::CoffeeScript::AttributeMerger, :attr_delimiter
    use Temple::HTML::AttributeSorter
    use Temple::CoffeeScript::AttributeRemover
    use Temple::HTML::Fast, :format, :attr_wrapper
    use Temple::CoffeeScript::Filters::Escapable, :disable_escape
    use Temple::CoffeeScript::Filters::ControlFlow
    filter :MultiFlattener
    use(:Optimizer) { Temple::Filters::StaticMerger.new }
    use(:Generator) { options[:generator].new(options) }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
skim-0.8.6 lib/skim/engine.rb
skim-0.8.5 lib/skim/engine.rb
skim-0.8.4 lib/skim/engine.rb
skim-0.8.3 lib/skim/engine.rb
skim-0.8.2 lib/skim/engine.rb
skim-0.8.1 lib/skim/engine.rb