lib/slim/engine.rb in slim-0.7.3 vs lib/slim/engine.rb in slim-0.7.4
- old
+ new
@@ -8,21 +8,22 @@
# Slim::Engine.set_default_options :pretty => true
#
set_default_options :pretty => false,
:attr_wrapper => '"',
:format => :html5,
- :id_delimiter => nil
+ :id_delimiter => nil,
+ :generator => Temple::Generators::ArrayBuffer
- use Slim::Parser, :file
- use Slim::EmbeddedEngine
+ use Slim::Parser, :file, :tabsize
+ use Slim::EmbeddedEngine, :enable_engines, :disable_engines
use Slim::Interpolation
use Slim::Sections, :sections, :dictionary, :dictionary_access
use Slim::EndInserter
use Slim::Compiler
filter :EscapeHTML, :use_html_safe
use Temple::HTML::Pretty, :format, :attr_wrapper, :id_delimiter, :pretty
filter :MultiFlattener
filter :StaticMerger
filter :DynamicInliner
- generator :ArrayBuffer
+ chain << proc {|options| options[:generator].new }
end
end