Sha256: 78c234f9487001f162ff48e0b0e25119731fee75dc4fad5ab7e5e18d088504fa
Contents?: true
Size: 518 Bytes
Versions: 2
Compression:
Stored size: 518 Bytes
Contents
module Jekyll module Diagrams class Block < Liquid::Block include Renderer def render(context) svg = render_svg(super.to_s, read_config(context)) wrap_class(svg) end def render_svg(content, config) raise 'Not Implemented' end def read_config(context) Util.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jekyll-diagrams-0.7.1 | lib/jekyll-diagrams/block.rb |
jekyll-diagrams-0.7.0 | lib/jekyll-diagrams/block.rb |