skelpy.templates package¶
Collection of template files
This package also provides a package-level function get_template().
-
skelpy.templates.get_template(tpl_name)[source]¶ Retrieve the template by name
copied from pyscaffold project.
Parameters: tpl_name (str) – template name
Returns: an instance of
string.Templateclass if successful, otherwise None.Return type: string.Templateor NoneRaises: IOError(python2.7)– if tpl_name.tpl file is not foundFileNotFoundError(python3.x)– if tpl_name.tpl file is not foundTypeError– if tpl_name is not given