Class: RevealCK::Markdown::SlideMarkdownTemplate
- Inherits:
-
Tilt::Template
- Object
- Tilt::Template
- RevealCK::Markdown::SlideMarkdownTemplate
- Defined in:
- lib/reveal-ck/markdown/slide_markdown_template.rb
Overview
Public: This class allows SlideMarkdown to hook into Tilt 2.0. See github.com/rtomayko/tilt.
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#prepare ⇒ Object
Must be implemented by all subclasses of Tilt::Template.
Instance Method Details
#evaluate ⇒ Object
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/reveal-ck/markdown/slide_markdown_template.rb', line 14 def evaluate(*) markdown = Redcarpet::Markdown.new( SlideMarkdown, fenced_code_blocks: true, tables: true, strikethrough: true, highlight: true ) @output = markdown.render(data) end |
#prepare ⇒ Object
Must be implemented by all subclasses of Tilt::Template
11 12 |
# File 'lib/reveal-ck/markdown/slide_markdown_template.rb', line 11 def prepare end |