Sha256: 32f8d102a35806f6e01087f2514e0e4919e7d8020b9604b873246acc1ffc55ec
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
class Sinatra::ContentFor2::HamlHandler < Sinatra::ContentFor2::BaseHandler def is_type? template.respond_to?(:is_haml?) && template.is_haml? end def block_is_type?(block) template.block_is_haml?(block) end def capture_from_template(*args, &block) eval("_hamlout ||= @haml_buffer", block.binding) # this is for rbx template.capture_haml(*args, &block) end def engines @engines ||= [ :haml ] end end Sinatra::ContentFor2::BaseHandler.register(Sinatra::ContentFor2::HamlHandler)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sinatra-content-for2-0.3 | lib/sinatra/content_for2/haml_handler.rb |
sinatra-content-for2-0.3.alpha1 | lib/sinatra/content_for2/haml_handler.rb |