def user_async_assets(): """ Using in a template will inject script tags that include the javascript assets defined by any concrete hook that subclasses UserSyncHook. :return: HTML of script tags to insert into user/user.html """ return webpack_asset_render(hooks.UserAsyncHook, is_async=True)
def coach_async_assets(): """ Using in a template will inject script tags that include the javascript assets defined by any concrete hook that subclasses CoachSyncHook. :return: HTML of script tags to insert into coach/coach.html """ return webpack_asset_render(hooks.CoachAsyncHook, async=True)
def style_guide_async_assets(): """ Using in a template will inject script tags that include the javascript assets defined by any concrete hook that subclasses StyleGuideSyncHook. :return: HTML of script tags to insert into style_guide/style_guide.html """ return webpack_asset_render(hooks.StyleGuideAsyncHook, is_async=True)
def coach_assets(): """ Using in a template will inject script tags that include the javascript assets defined by any concrete hook that subclasses CoachSyncHook. :return: HTML of script tags to insert into coach/coach.html """ return webpack_asset_render(hooks.CoachSyncHook, is_async=False)
def user_async_assets(): """ Using in a template will inject script tags that include the javascript assets defined by any concrete hook that subclasses UserSyncHook. :return: HTML of script tags to insert into user/user.html """ return webpack_asset_render(hooks.UserAsyncHook, async=True)
def setup_wizard_async_assets(): """ Using in a template will inject script tags that include the javascript assets defined by any concrete hook that subclasses ManagementSyncHook. :return: HTML of script tags to insert into setup_wizard/setup_wizard.html """ return webpack_asset_render(hooks.SetupWizardAsyncHook, is_async=True)
def management_assets(): """ Using in a template will inject script tags that include the javascript assets defined by any concrete hook that subclasses ManagementSyncHook. :return: HTML of script tags to insert into management/management.html """ return webpack_asset_render(hooks.ManagementSyncHook, async=False)
def setup_wizard_async_assets(): """ Using in a template will inject script tags that include the javascript assets defined by any concrete hook that subclasses ManagementSyncHook. :return: HTML of script tags to insert into setup_wizard/setup_wizard.html """ return webpack_asset_render(hooks.SetupWizardAsyncHook, async=True)
def learn_assets(): """ Using in a template will inject script tags that include the javascript assets defined by any concrete hook that subclasses ManagementSyncHook. :return: HTML of script tags to insert into management/management.html """ return webpack_asset_render(hooks.LearnSyncHook, is_async=False)
def facility_management_assets(): """ Using in a template will inject script tags that include the javascript assets defined by any concrete hook that subclasses FacilityManagementSyncHook. :return: HTML of script tags to insert into the template """ return webpack_asset_render(FacilityManagementSyncHook, is_async=False)
def content_renderer_assets(): """ This is a script tag for all ``ContentRendererInclusionHook`` hooks that implement a render_to_html() method - this is used in in any template to register any content renderers with the frontend so that they can be dynamically loaded on demand. :return: HTML of script tags to insert into template """ return webpack_asset_render(hooks.ContentRendererHook, is_async=True)
def kolibri_navigation_actions(): """ A tag to include an initial JS-object to bootstrap nav action data into the app. :return: An html string """ return webpack_asset_render(NavigationHook)
def device_management_assets(): return webpack_asset_render(hooks.DeviceManagementSyncHook, async=False)