Class: Jekyll::Diagrams::NomnomlRenderer
- Inherits:
-
BasicRenderer
- Object
- BasicRenderer
- Jekyll::Diagrams::NomnomlRenderer
- Defined in:
- lib/jekyll-diagrams/nomnoml/renderer.rb
Instance Method Summary collapse
Methods inherited from BasicRenderer
Methods included from Rendering
render_with_command, render_with_stdin_stdout, render_with_tempfile
Constructor Details
This class inherits a constructor from Jekyll::Diagrams::BasicRenderer
Instance Method Details
#build_command(_config) ⇒ Object
14 15 16 |
# File 'lib/jekyll-diagrams/nomnoml/renderer.rb', line 14 def build_command(_config) 'nomnoml' end |
#render_svg(code, config) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/jekyll-diagrams/nomnoml/renderer.rb', line 6 def render_svg(code, config) command = build_command(config) render_with_tempfile(command, code) do |input, output| "#{input} #{output}" end end |