Revert "fix: refactor MakoService to allow specifying namespace per template (#33061)" (#33070)

This reverts commit d60cdc2305.
This commit is contained in:
bszabo
2023-08-21 16:32:58 -04:00
committed by GitHub
parent 98cb27da36
commit 68e9a03708
25 changed files with 55 additions and 113 deletions

View File

@@ -391,7 +391,7 @@ class LibraryContentBlock(
'content': rendered_child.content,
})
fragment.add_content(self.runtime.service(self, 'mako').render_lms_template('vert_module.html', {
fragment.add_content(self.runtime.service(self, 'mako').render_template('vert_module.html', {
'items': contents,
'xblock_context': context,
'show_bookmark_button': False,
@@ -421,7 +421,7 @@ class LibraryContentBlock(
if max_count < 0:
max_count = len(self.children)
fragment.add_content(self.runtime.service(self, 'mako').render_cms_template(
fragment.add_content(self.runtime.service(self, 'mako').render_template(
"library-block-author-preview-header.html", {
'max_count': max_count,
'display_name': self.display_name or self.url_name,
@@ -442,7 +442,7 @@ class LibraryContentBlock(
Return the studio view.
"""
fragment = Fragment(
self.runtime.service(self, 'mako').render_cms_template(self.mako_template, self.get_context())
self.runtime.service(self, 'mako').render_template(self.mako_template, self.get_context())
)
add_webpack_js_to_fragment(fragment, 'LibraryContentBlockEditor')
shim_xmodule_js(fragment, self.studio_js_module_name)