Class: Markover::Markup::Renderer
- Inherits:
-
Object
- Object
- Markover::Markup::Renderer
- Defined in:
- lib/markover/markup/renderer.rb
Overview
Contains functionality to render html from a markup file
Instance Method Summary collapse
-
#initialize(file, do_remove_yaml_front_matter = false) ⇒ Markover::Markup
constructor
Initialize a new Markup object.
-
#render ⇒ String
Render the content with Gollum wiki syntax on top of the file’s own markup language.
Constructor Details
#initialize(file, do_remove_yaml_front_matter = false) ⇒ Markover::Markup
Initialize a new Markup object.
14 15 16 17 18 19 20 21 |
# File 'lib/markover/markup/renderer.rb', line 14 def initialize(file, do_remove_yaml_front_matter = false) @file = file @do_remove_yaml_front_matter = do_remove_yaml_front_matter @data = file.data @code = Code.new @yaml_frontmatter_remover = YamlFrontmatterRemover.new end |
Instance Method Details
#render ⇒ String
Render the content with Gollum wiki syntax on top of the file’s own markup language.
27 28 29 30 31 32 33 |
# File 'lib/markover/markup/renderer.rb', line 27 def render prepare_data render_data post_process_data return @data end |