Sha256: 771fee3a3853aaff857c5daae5c9e7f9635e632654d0955fa74d17dad02b6acb

Contents?: true

Size: 430 Bytes

Versions: 1

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true

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

        render_with_tempfile(command, code, stdout: true) do |input|
          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.2 lib/jekyll-diagrams/nomnoml.rb