Skip to content

pipen.template

module

pipen.template

Template adaptor for pipen

Classes
Functions
abstract class

pipen.template.Template(source, **kwargs)

Base class wrapper to wrap template for pipen

Methods
  • render(data) (str) Render the template@parmas: data (dict): The data used to render </>
method

render(data=None) → str

Render the template@parmas: data (dict): The data used to render

class

pipen.template.TemplateLiquid(source, **kwargs)

Liquidpy template wrapper.

Methods
  • render(data) (str) Render the template@parmas: data (dict): The data used to render </>
method

render(data=None) → str

Render the template@parmas: data (dict): The data used to render

class

pipen.template.TemplateJinja2(source, **kwargs)

Jinja2 template wrapper

Methods
  • render(data) (str) Render the template@parmas: data (dict): The data used to render </>
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