class Jekyll::Diagrams::NomnomlRenderer
Public Instance Methods
build_command(_config)
click to toggle source
# File lib/jekyll-diagrams/nomnoml/renderer.rb, line 14 def build_command(_config) 'nomnoml' end
render_svg(code, config)
click to toggle source
# 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