Module: Hamlet Private

Defined in:
lib/hamlet/parser.rb,
lib/hamlet/template.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Classes: Engine, Parser

Constant Summary collapse

Template =

Tilt template implementation for Hamlet

Temple::Templates::Tilt(Hamlet::Engine, :register_as => :hamlet)
RailsTemplate =

Rails template implementation for Hamlet

Temple::Templates::Rails(Hamlet::Engine,
:register_as => :hamlet,
# Use rails-specific generator. This is necessary
# to support block capturing and streaming.
:generator => Temple::Generators::RailsOutputBuffer,
# Disable the internal hamlet capturing.
# Rails takes care of the capturing by itself.
:disable_capture => true,
:streaming => Object.const_defined?(:Fiber))