reportcompiler.plugins.template_renderers.rmarkdown
¶
rmarkdown.py
This module includes the template renderer using rmarkdown.
Classes¶
RMarkdownRenderer
: Template renderer for RMarkdown.
-
class
reportcompiler.plugins.template_renderers.rmarkdown.
RMarkdownRenderer
¶ Template renderer for RMarkdown.
Inheritance
-
get_fragment_start_comment
(name)¶ Returns the comment that will be inserted before the fragment template.
Parameters: name (str) – fragment name Returns: Comment to be inserted before the template Return type: str
-
included_templates
(content)¶ Returns the included templates in the specified content.
Parameters: content (str) – Template content Returns: List of included templates Return type: list
-
render_template
(doc_param, template_tree, context)¶ Renders the template after the context is generated for all fragments.
Parameters: - doc_param (OrderedDict) – Document variable.
- template_tree (anytree) – Tree with the templates to be rendered.
- context (dict) – Context dictionary with keys ‘data’ (context generated from fragments) and ‘meta’ (document metadata).
-