Class: Coradoc::Output::HtmlStatic
- Inherits:
-
Object
- Object
- Coradoc::Output::HtmlStatic
- Extended by:
- Html::FormatDetection
- Defined in:
- lib/coradoc/html/output.rb
Overview
Static HTML output processor
Generates static HTML documents from CoreModel using the classic rendering approach without JavaScript frameworks.
Class Method Summary collapse
-
.processor_execute(input, options = {}) ⇒ Hash<String, String>
Process documents to static HTML.
- .processor_id ⇒ Object
- .processor_match?(filename) ⇒ Boolean
Methods included from Html::FormatDetection
Class Method Details
.processor_execute(input, options = {}) ⇒ Hash<String, String>
Process documents to static HTML
34 35 36 37 38 39 40 41 |
# File 'lib/coradoc/html/output.rb', line 34 def processor_execute(input, = {}) result = {} input.each do |filename, document| html = Coradoc::Html::Static.convert(document, ) result[filename] = html end result end |
.processor_id ⇒ Object
22 23 24 |
# File 'lib/coradoc/html/output.rb', line 22 def processor_id :html_static end |
.processor_match?(filename) ⇒ Boolean
26 27 28 |
# File 'lib/coradoc/html/output.rb', line 26 def processor_match?(filename) html_extension?(filename) end |