update mitxmako lookup / fixes FOR-150
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user