Class: HamlUserTags::Compiler
- Inherits:
-
Haml::Compiler
- Object
- Haml::Compiler
- HamlUserTags::Compiler
- Defined in:
- lib/haml_user_tags/compiler.rb
Instance Method Summary collapse
Instance Method Details
#compile(node) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/haml_user_tags/compiler.rb', line 3 def compile(node) if node.type == :tag and node.value[:name] =~ HamlUserTags::TAG_NAME_REGEX node = convert_user_tag_to_script node end super node end |