Class: Temple::Filters::Validator
- Inherits:
-
Temple::Filter
- Object
- Temple::Filter
- Temple::Filters::Validator
- Defined in:
- lib/temple/filters/validator.rb
Overview
Validates temple expression with given grammar
Constant Summary
Constants included from Utils
Utils::ESCAPE_HTML, Utils::ESCAPE_HTML_PATTERN
Instance Attribute Summary
Attributes included from Mixins::Options
Instance Method Summary collapse
Methods included from Mixins::Options
Methods included from Mixins::ControlFlowDispatcher
#on_block, #on_case, #on_cond, #on_if
Methods included from Mixins::EscapeDispatcher
Methods included from Mixins::CoreDispatcher
Methods included from Mixins::CompiledDispatcher
Methods included from Utils
#empty_exp?, #escape_html, #escape_html_safe, #indent_dynamic, #unique_name
Instance Method Details
#compile(exp) ⇒ Object
10 11 12 13 |
# File 'lib/temple/filters/validator.rb', line 10 def compile(exp) [:grammar].validate!(exp) exp end |