A JS and CSS resource registry which helps to allow widgets and such add JS and CSS files dynamically on the page.
Usually instance of this class is available as
<script>tags in the middle of
<body>and even worse assume you have loaded dependencies, like jQuery, in the
<head>. Namely, Deform 2 form library does this.
BodyRelocatableResourceRegistrycontains the logic to determine if
<script>tags should go to the end of the page (preferred) or to
See also :py:attr`deform.widget.default_resources` which includes the list of default resources activated for any form on the page.
Get list of resource URLs to render.
kind – “js” or “css”
- Return type
request_resource(kind, resource_url, js_requires_head=False)¶
A widget or something wants to place a CSS or JS file on the page rendering.
Reify method for configuration.