class Hamlit::Block::Compiler

Public Class Methods

new(options = {}) click to toggle source
Calls superclass method
# File lib/hamlit/block/compiler.rb, line 7
def initialize(options = {})
  super

  # Re-generate identity for Hamlit::Block and share it
  identity = Identity.new
  @tag_compiler = ::Hamlit::Compiler::TagCompiler.new(identity, options)

  # Replace internal compilers with Hamlit::Block's ones.
  @script_compiler        = ::Hamlit::Block::ScriptCompiler.new(identity)
  @silent_script_compiler = ::Hamlit::Block::SilentScriptCompiler.new(identity)
end