lib/jekyll-diagrams/block.rb in jekyll-diagrams-0.7.1 vs lib/jekyll-diagrams/block.rb in jekyll-diagrams-0.8.0

- old
+ new

@@ -1,9 +1,10 @@ module Jekyll module Diagrams class Block < Liquid::Block include Renderer + include Util def render(context) svg = render_svg(super.to_s, read_config(context)) wrap_class(svg) end @@ -11,12 +12,12 @@ def render_svg(content, config) raise 'Not Implemented' end def read_config(context) - Util.config_for(context, block_name) + config_for(context, block_name) end - + def wrap_class(content) "<div class='jekyll-diagrams diagrams #{block_name}'>#{content}</div>" end end end \ No newline at end of file