Index: defaulttags.py =================================================================== --- defaulttags.py (revision 9524) +++ defaulttags.py (working copy) @@ -289,6 +289,10 @@ self.filepath, self.parsed = filepath, parsed def render(self, context): + + if context.has_key(self.filepath): + self.filepath = context[self.filepath] + if not include_is_allowed(self.filepath): if settings.DEBUG: return "[Didn't have permission to include file]"