Sha256: 48ba84f0a24a5ef770623ccbf45cc9ace92f739ed6719545e0af5c0cdd9d1c13
Contents?: true
Size: 503 Bytes
Versions: 1
Compression:
Stored size: 503 Bytes
Contents
# frozen_string_literal: true module Jekyll module Diagrams class Block < Liquid::Block include Util def render(context) svg = render_svg(super.to_s, read_config(context)) wrap_class(svg) end def render_svg(_, _) '' end def read_config(context) config_for(context, block_name) end def wrap_class(content) "<div class='jekyll-diagrams diagrams #{block_name}'>#{content}</div>" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-diagrams-0.9.2 | lib/jekyll-diagrams/block.rb |