Class: Coradoc::Output::HtmlSpa
- Inherits:
-
Object
- Object
- Coradoc::Output::HtmlSpa
- Extended by:
- Html::FormatDetection
- Defined in:
- lib/coradoc/html/output.rb
Overview
SPA (Single Page Application) HTML output processor
Generates modern Vue.js + Tailwind CSS HTML documents from CoreModel.
Class Method Summary collapse
-
.processor_execute(input, options = {}) ⇒ Hash<String, String>
Process documents to SPA 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 SPA HTML
71 72 73 74 75 76 77 78 |
# File 'lib/coradoc/html/output.rb', line 71 def processor_execute(input, = {}) result = {} input.each do |filename, document| html = Coradoc::Html::Spa.convert(document, ) result[filename] = html end result end |
.processor_id ⇒ Object
59 60 61 |
# File 'lib/coradoc/html/output.rb', line 59 def processor_id :html_spa end |
.processor_match?(filename) ⇒ Boolean
63 64 65 |
# File 'lib/coradoc/html/output.rb', line 63 def processor_match?(filename) html_extension?(filename) end |