summaryrefslogtreecommitdiffstats
path: root/nikola/plugins/template_mako.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2013-02-13 18:35:39 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2013-02-13 18:35:39 -0300
commita40930043121a4b60de8526d58417761a54ab718 (patch)
tree383c5cf8e320761ee942619282fe51be625179a7 /nikola/plugins/template_mako.py
parent9c5708cc92af894e414bc76ee35ec2230de5d288 (diff)
Imported Upstream version 5.2upstream/5.2
Diffstat (limited to 'nikola/plugins/template_mako.py')
-rw-r--r--nikola/plugins/template_mako.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/nikola/plugins/template_mako.py b/nikola/plugins/template_mako.py
index 2f8d52c..6ec6698 100644
--- a/nikola/plugins/template_mako.py
+++ b/nikola/plugins/template_mako.py
@@ -8,11 +8,11 @@
# distribute, sublicense, and/or sell copies of the
# Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
-#
+#
# The above copyright notice and this permission notice
# shall be included in all copies or substantial portions of
# the Software.
-#
+#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
# KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
# WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
@@ -48,7 +48,8 @@ class MakoTemplates(TemplateSystem):
deps = []
for n in lex.template.nodes:
- if getattr(n, 'keyword', None) == "inherit":
+ keyword = getattr(n, 'keyword', None)
+ if keyword in ["inherit", "namespace"]:
deps.append(n.attributes['file'])
# TODO: include tags are not handled
return deps
@@ -61,8 +62,7 @@ class MakoTemplates(TemplateSystem):
self.lookup = TemplateLookup(
directories=directories,
module_directory=cache_dir,
- output_encoding='utf-8',
- )
+ output_encoding='utf-8')
def render_template(self, template_name, output_name, context):
"""Render the template into output_name using context."""