Class: Coradoc::Html::Spa
- Inherits:
-
ConverterBase
- Object
- ConverterBase
- Coradoc::Html::Spa
- Defined in:
- lib/coradoc/html/spa.rb
Overview
SPA HTML converter
Converts CoreModel documents to SPA HTML5 with embedded Vue.js frontend. Uses the unified Liquid template pipeline.
Defined Under Namespace
Classes: Configuration
Instance Attribute Summary
Attributes inherited from ConverterBase
Instance Method Summary collapse
Methods inherited from ConverterBase
convert, #initialize, #to_file, to_file
Constructor Details
This class inherits a constructor from Coradoc::Html::ConverterBase
Instance Method Details
#convert ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/coradoc/html/spa.rb', line 45 def convert renderer = Renderer.new(template_dirs: @config.template_dirs) renderer.render_html5( @document, layout: :spa, lang: @config.lang, toc: @config.toc_sticky, toc_levels: @config.toc_levels, section_numbers: false, dist_dir: @config.dist_dir, theme_toggle: @config.theme_toggle, reading_progress: @config.reading_progress ) end |