Class Brakeman::HamlTemplateProcessor
In: lib/brakeman/processors/haml_template_processor.rb
Parent: Brakeman::TemplateProcessor

Processes HAML templates.

Methods

Constants

HAML_FORMAT_METHOD = /format_script_(true|false)_(true|false)_(true|false)_(true|false)_(true|false)_(true|false)_(true|false)/
HAML_HELPERS = s(:colon2, s(:const, :Haml), :Helpers)
JAVASCRIPT_FILTER = s(:colon2, s(:colon2, s(:const, :Haml), :Filters), :Javascript)
COFFEE_FILTER = s(:colon2, s(:colon2, s(:const, :Haml), :Filters), :Coffee)

Public Instance methods

HAML likes to put interpolated values into _hamlout.push_text but we want to handle those individually

Gets outputs from values interpolated into _hamlout.push_text

Checks if the buffer is the target in a method call Sexp. TODO: Test this

If inside an output stream, only return the final expression

Processes call, looking for template output

[Validate]