Permalink
Browse files

fix #1956

  • Loading branch information...
ralsina committed Aug 20, 2015
1 parent 4dbfeae commit 02761bcdcbaf78f1c98cb4740c298a9f360bb41f
Showing with 3 additions and 2 deletions.
  1. +1 −0 CHANGES.txt
  2. +2 −2 nikola/plugins/template/mako.py
View
@@ -12,6 +12,7 @@ Features
Bugfixes
--------
* Add dependencies for include tag in Mako (Issue #1956)
* Don’t duplicate BLOG_TITLE in the front page title (Issue #1952)
* Escape instad of strip HTML in titles (Issue #1952)
* Make LINK_CHECK_WHITELIST apply to remote link checks
@@ -32,7 +32,7 @@
import sys
import tempfile
from mako import util, lexer
from mako import util, lexer, parsetree
from mako.lookup import TemplateLookup
from mako.template import Template
from markupsafe import Markup # It's ok, Mako requires it
@@ -64,7 +64,7 @@ def get_deps(self, filename):
deps = []
for n in lex.template.nodes:
keyword = getattr(n, 'keyword', None)
if keyword in ["inherit", "namespace"]:
if keyword in ["inherit", "namespace"] or isinstance(n, parsetree.IncludeTag):
deps.append(n.attributes['file'])
# TODO: include tags are not handled
return deps

0 comments on commit 02761bc

Please sign in to comment.