update mitxmako lookup / fixes FOR-150

This commit is contained in:
jsa
2013-09-05 23:23:52 -04:00
parent 5d55714cad
commit 5c39c794c8

View File

@@ -12,7 +12,7 @@ from django.utils import simplejson
from django_comment_common.models import Role
from django_comment_client.permissions import check_permissions_by_view
from mitxmako import middleware
import mitxmako
import pystache_custom as pystache
from xmodule.modulestore.django import modulestore
@@ -335,7 +335,7 @@ def url_for_tags(course_id, tags):
def render_mustache(template_name, dictionary, *args, **kwargs):
template = middleware.lookup['main'].get_template(template_name).source
template = mitxmako.lookup['main'].get_template(template_name).source
return pystache.render(template, dictionary)