Method: Phlex::SGML#comment
- Defined in:
- lib/phlex/sgml.rb
#comment ⇒ Object
Wrap the output in an HTML comment.
[MDN Docs](developer.mozilla.org/en-US/docs/Web/HTML/Comments)
181 182 183 184 185 186 187 188 189 190 191 192 |
# File 'lib/phlex/sgml.rb', line 181 def comment(&) state = @_state return unless state.should_render? buffer = state.buffer buffer << "<!-- " __yield_content__(&) buffer << " -->" nil end |