classmethod Styler.from_custom_template(searchpath, name)[source]

Factory function for creating a subclass of Styler with a custom template and Jinja environment.

searchpath : str or list

Path or paths of directories containing the templates

name : str

Name of your custom template to use for rendering

MyStyler : subclass of Styler

Has the correct env and template class attributes set.

Scroll To Top