mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Support templates of any file extension.
This commit is contained in:
parent
30b8a2069e
commit
fa89f262b7
1 changed files with 2 additions and 2 deletions
|
|
@ -86,9 +86,9 @@ class Generator(object):
|
|||
"""
|
||||
if name not in self._templates:
|
||||
try:
|
||||
self._templates[name] = self.env.get_template(name + '.html')
|
||||
self._templates[name] = self.env.get_template(name)
|
||||
except TemplateNotFound:
|
||||
raise Exception('[templates] unable to load %s.html from %s'
|
||||
raise Exception('[templates] unable to load %s from %s'
|
||||
% (name, self._templates_path))
|
||||
return self._templates[name]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue