Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix #1956
  • Loading branch information
ralsina committed Aug 20, 2015
1 parent 4dbfeae commit 02761bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions nikola/plugins/template/mako.py
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 02761bc

Please sign in to comment.