Class: Docgenerator::Creole::Placeholders::Creole_html

Inherits:
Docgenerator::Creole::Placeholder show all
Defined in:
lib/docgenerator/creole/placeholder.rb

Overview

Placeholder for pure HTML-output. This content is ignored in LaTeX, Wiki… documents.

Usage:

<<<html
content
>>>

Note: There is also a plugin for short html:

{{html|code}}

Instance Method Summary collapse

Methods inherited from Docgenerator::Creole::Placeholder

#<<, #close, #initialize, set_placeholder_key

Constructor Details

This class inherits a constructor from Docgenerator::Creole::Placeholder

Instance Method Details

#to_doc(target, options = {}) ⇒ Object

Return content only for html



108
109
110
# File 'lib/docgenerator/creole/placeholder.rb', line 108

def to_doc( target, options = {})
  target == :html ? @source.to_doc( target, options ) : ''
end