Added standard templates
This commit is contained in:
parent
d99e5ec840
commit
20becdbd27
14 changed files with 293 additions and 24 deletions
|
|
@ -77,8 +77,12 @@ class ptemplate:
|
|||
theme_templates='themes/'+config.theme+'/templates'
|
||||
|
||||
module_templates=module+'/templates'
|
||||
|
||||
#Standard templates
|
||||
|
||||
standard_templates=path.dirname(__name__)+'/templates'
|
||||
|
||||
return TemplateLookup(directories=[theme_templates, module_templates], default_filters=['h'], input_encoding='utf-8', encoding_errors='replace')
|
||||
return TemplateLookup(directories=[theme_templates, module_templates, standard_templates], default_filters=['h'], input_encoding='utf-8', encoding_errors='replace')
|
||||
|
||||
#return Environment(autoescape=self.guess_autoescape, auto_reload=True, loader=FileSystemLoader([theme_templates, module_templates]))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue