def find_by_name(name, engines=None):
if engines is None:<EOL><INDENT>engines = ENGINES<EOL><DEDENT>for egn in engines:<EOL><INDENT>if egn.name() == name:<EOL><INDENT>return egn<EOL><DEDENT><DEDENT>return None<EOL>
Find a template engine class specified by its name `name`.

:param name: Template name
:param engines: Template engines

:return: A template engine or None if no any template engine of given name
    were found.