diff --git a/IzzyLib/template.py b/IzzyLib/template.py index f8c1965..92652c5 100644 --- a/IzzyLib/template.py +++ b/IzzyLib/template.py @@ -148,7 +148,7 @@ def buildTemplates(name=None): for filename in listdir(src): fullPath = f'{src}/{filename}' modtime = getmtime(fullPath) - base, ext = filename.split('.') + base, ext = filename.split('.', 1) if ext != 'haml': pass @@ -199,7 +199,7 @@ class templateWatchHandler(FileSystemEventHandler): if event.event_type in ['modified', 'created'] and ext[1:] == 'haml': logging.info('Rebuilding templates') - build_templates() + buildTemplates() __all__ = ['addSearchPath', 'delSearchPath', 'addBuildPath', 'delSearchPath', 'addEnv', 'delEnv', 'setup', 'renderTemplate', 'aiohttp', 'buildTemplates', 'templateWatcher']