Class: Hamlit::Compiler::CommentCompiler

Inherits:
Object
  • Object
show all
Defined in:
lib/hamlit/compiler/comment_compiler.rb

Instance Method Summary collapse

Instance Method Details

#compile(node, &block) ⇒ Object


4
5
6
7
8
9
10
# File 'lib/hamlit/compiler/comment_compiler.rb', line 4

def compile(node, &block)
  if node.value[:conditional]
    compile_conditional_comment(node, &block)
  else
    compile_html_comment(node, &block)
  end
end