pipen.template
Template adaptor for pipen
Classes
Template(source,**kwargs)— Base class wrapper to wrap template for pipen</>TemplateLiquid— Liquidpy template wrapper.</>TemplateJinja2— Jinja2 template wrapper</>
Functions
get_template_engine(template)(Type) — Get the template engine by name or the template engine itself</>
abstract class
pipen.template.Template(source, **kwargs)
Base class wrapper to wrap template for pipen
method
render(data=None) → str
Render the template@parmas: data (dict): The data used to render
class
pipen.template.TemplateLiquid(source, **kwargs)
Bases
Liquidpy template wrapper.
method
render(data=None) → str
Render the template@parmas: data (dict): The data used to render
class
pipen.template.TemplateJinja2(source, **kwargs)
Bases
Jinja2 template wrapper
method
render(data=None) → str
Render the template@parmas: data (dict): The data used to render
function
pipen.template.get_template_engine(template)
Get the template engine by name or the template engine itself
Parameters
template(Union) — The name of the template engine or the template engine itself
Returns (Type)
The template engine