Module: Webgen::ContentProcessor::Tikz
- Defined in:
- lib/webgen/content_processor/tikz.rb
Overview
Uses LaTeX and the TikZ library for creating images from LaTeX code.
Class Method Summary collapse
-
.call(context) ⇒ Object
Process the content with LaTeX to generate a TikZ image.
Class Method Details
.call(context) ⇒ Object
Process the content with LaTeX to generate a TikZ image.
21 22 23 24 25 26 27 |
# File 'lib/webgen/content_processor/tikz.rb', line 21 def self.call(context) (context) context.content = context.render_block(:name => 'content', :chain => [context.website.tree[context['content_processor.tikz.template']]]) context.content = File.binread(use_cache_or_compile(context)) context end |