docs: Clarify a potentially confusing deprecation message

This commit is contained in:
Braden MacDonald
2022-06-02 13:59:30 -07:00
committed by Braden MacDonald
parent 40e86425d9
commit 5d93f883f1

View File

@@ -143,7 +143,9 @@ class RuntimeShim:
"""
warnings.warn(
"Use of runtime.render_template is deprecated. "
"Use xblockutils.resources.ResourceLoader.render_mako_template or a JavaScript-based template instead.",
"For template files included with your XBlock (which is preferable), use "
"xblockutils.resources.ResourceLoader.render_mako_template to render them, or use a JavaScript-based "
"template instead. For template files that are part of the LMS/Studio, use the 'mako' XBlock service.",
DeprecationWarning, stacklevel=2,
)
try: