Sha256: 6e08d76a580f308c7dddff3ef459932c2ad958629109f743f4d8ecae7171e030

Contents?: true

Size: 422 Bytes

Versions: 1

Compression:

Stored size: 422 Bytes

Contents

module Jekyll
  module Diagrams
    class NomnomlBlock < Block
      def render_svg(code, config)
        command = build_command(config)

        render_with_tempfile(command, code, stdout: true) do |command, input|
          "#{command} #{input}"
        end
      end

      def build_command(config)
        'nomnoml'
      end
    end
  end
end

Liquid::Template.register_tag(:nomnoml, Jekyll::Diagrams::NomnomlBlock)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jekyll-diagrams-0.9.1 lib/jekyll-diagrams/nomnoml.rb