class Haml::Parser
def initialize(options)
def initialize(options) @options = ParserOptions.new(options) # Record the indent levels of "if" statements to validate the subsequent # elsif and else statements are indented at the appropriate level. @script_level_stack = [] @template_index = 0 @template_tabs = 0 # When used in Haml::Engine, which gives options[:generator] to every filter # in the engine, including Haml::Parser, we don't want to throw exceptions. # However, when Haml::Parser is used as a library, we want to throw exceptions. @raise_error = !options.key?(:generator) end