@classmethod<EOL><INDENT>def from_custom_template(cls, searchpath, name):<DEDENT>
loader = ChoiceLoader([<EOL>FileSystemLoader(searchpath),<EOL>cls.loader,<EOL>])<EOL>class MyStyler(cls):<EOL><INDENT>env = Environment(loader=loader)<EOL>template = env.get_template(name)<EOL><DEDENT>return MyStyler<EOL>
Factory function for creating a subclass of ``Styler``
with a custom template and Jinja environment.

Parameters
----------
searchpath : str or list
    Path or paths of directories containing the templates
name : str
    Name of your custom template to use for rendering

Returns
-------
MyStyler : subclass of Styler
    Has the correct ``env`` and ``template`` class attributes set.