fix: refactor MakoService to allow specifying namespace per template (#33061)
This commit is contained in:
@@ -161,7 +161,8 @@ class VerticalBlock(
|
||||
child_context['username'], str(self.location)), # pylint: disable=no-member
|
||||
})
|
||||
|
||||
fragment.add_content(self.runtime.service(self, 'mako').render_template('vert_module.html', fragment_context))
|
||||
mako_service = self.runtime.service(self, 'mako')
|
||||
fragment.add_content(mako_service.render_lms_template('vert_module.html', fragment_context))
|
||||
|
||||
add_webpack_js_to_fragment(fragment, 'VerticalStudentView')
|
||||
fragment.initialize_js('VerticalStudentView')
|
||||
|
||||
Reference in New Issue
Block a user