diff --git a/common/lib/mitxmako/mitxmako/templatetag_helpers.py b/common/lib/mitxmako/mitxmako/templatetag_helpers.py index 0c66cea090..10c502fbfe 100644 --- a/common/lib/mitxmako/mitxmako/templatetag_helpers.py +++ b/common/lib/mitxmako/mitxmako/templatetag_helpers.py @@ -1,3 +1,4 @@ +from django.template import loader from django.template.base import Template, Context from django.template.loader import get_template, select_template @@ -21,3 +22,7 @@ def render_inclusion(func, file_name, *args, **kwargs): # 'use_tz': context.use_tz, # }) return nodelist.render(new_context) + +def django_template_include(file_name, mako_context): + dictionary = dict( mako_context ) + return loader.render_to_string(file_name, dictionary=dictionary) diff --git a/lms/templates/wiki/article.html b/lms/templates/wiki/article.html index bedeb368d0..3a2c9653fa 100644 --- a/lms/templates/wiki/article.html +++ b/lms/templates/wiki/article.html @@ -7,45 +7,35 @@ %> <%namespace name="article_menu" file="includes/article_menu.html"/> +<%namespace name="breadcrumbs" file="includes/breadcrumbs.html"/> <%block name="title">