Class: Jekyll::Geolexica::JbuilderTag

Inherits:
Liquid::Block
  • Object
show all
Defined in:
lib/jekyll/geolexica/jbuilder_tag.rb

Defined Under Namespace

Classes: Error, JbuilderWrapper

Instance Method Summary collapse

Instance Method Details

#render(context) ⇒ Object



11
12
13
14
15
16
17
18
19
# File 'lib/jekyll/geolexica/jbuilder_tag.rb', line 11

def render(context)
  source = super
  wrapper = JbuilderWrapper.new(context)
  wrapper.eval_source(source)
  wrapper.target!
rescue
  Jekyll.logger.error $!.detailed_message
  raise
end