Load XBlocks with webpack rather than RequireJS

This commit is contained in:
Calen Pennington
2018-02-15 21:56:25 -05:00
parent 94557900f8
commit d08e199f79
67 changed files with 595 additions and 322 deletions

View File

@@ -7,6 +7,7 @@ from lms.lib.utils import is_unit
from openedx.core.djangolib.js_utils import (
dump_js_escaped_json, js_escaped_string
)
from xmodule.x_module import XModule, XModuleDescriptor
%>
<%
xblock_url = xblock_studio_url(xblock)
@@ -38,6 +39,10 @@ block_is_unit = is_unit(xblock)
});
</script>
% if isinstance(xblock, (XModule, XModuleDescriptor)):
<%static:webpack entry="${getattr(xblock.__class__, 'unmixed_class', xblock.__class__).__name__}"/>
% endif
% if not is_root:
% if is_reorderable:
<li class="studio-xblock-wrapper is-draggable" data-locator="${xblock.location}" data-course-key="${xblock.location.course_key}">