mirror of
https://github.com/django-components/django-components.git
synced 2025-08-15 19:50:13 +00:00
Deployed be27c1c
to dev with MkDocs 1.6.1 and mike 2.1.3
This commit is contained in:
parent
44897c34fc
commit
9778fa653d
7 changed files with 56 additions and 56 deletions
File diff suppressed because one or more lines are too long
|
@ -463,7 +463,7 @@
|
|||
<a id=__codelineno-0-14 name=__codelineno-0-14 href=#__codelineno-0-14></a><span class=c1># Unregister all</span>
|
||||
<a id=__codelineno-0-15 name=__codelineno-0-15 href=#__codelineno-0-15></a><span class=n>registry</span><span class=o>.</span><span class=n>clear</span><span class=p>()</span>
|
||||
</code></pre></div> </div> </div> <div class="doc doc-object doc-function"> <h2 id=django_components.render_dependencies class="doc doc-heading"> <code class="doc-symbol doc-symbol-heading doc-symbol-function"></code> <span class="doc doc-object-name doc-function-name">render_dependencies</span> <a href=#django_components.render_dependencies class=headerlink title="Permanent link">¤</a></h2> <div class="doc-signature highlight"><pre><span></span><code><a id=__codelineno-0-1 name=__codelineno-0-1 href=#__codelineno-0-1></a><span class=nf>render_dependencies</span><span class=p>(</span><span class=n>content</span><span class=p>:</span> <span class=n><span title=django_components.dependencies.TContent>TContent</span></span><span class=p>,</span> <span class=nb>type</span><span class=p>:</span> <span class=n><span title=django_components.dependencies.RenderType>RenderType</span></span> <span class=o>=</span> <span class=s1>'document'</span><span class=p>)</span> <span class=o>-></span> <span class=n><span title=django_components.dependencies.TContent>TContent</span></span>
|
||||
</code></pre></div> <div class="doc doc-contents first"> <p><a href=https://github.com/EmilStenstrom/django-components/tree/master/src/django_components/dependencies.py#L289 target=_blank>See source code</a></p> <p>Given a string that contains parts that were rendered by components, this function inserts all used JS and CSS.</p> <p>By default, the string is parsed as an HTML and: - CSS is inserted at the end of <code><head></code> (if present) - JS is inserted at the end of <code><body></code> (if present)</p> <p>If you used <code>{% component_js_dependencies %}</code> or <code>{% component_css_dependencies %}</code>, then the JS and CSS will be inserted only at these locations.</p> <p>Example: <div class=highlight><pre><span></span><code><a id=__codelineno-0-1 name=__codelineno-0-1 href=#__codelineno-0-1></a><span class=k>def</span> <span class=nf>my_view</span><span class=p>(</span><span class=n>request</span><span class=p>):</span>
|
||||
</code></pre></div> <div class="doc doc-contents first"> <p><a href=https://github.com/EmilStenstrom/django-components/tree/master/src/django_components/dependencies.py#L290 target=_blank>See source code</a></p> <p>Given a string that contains parts that were rendered by components, this function inserts all used JS and CSS.</p> <p>By default, the string is parsed as an HTML and: - CSS is inserted at the end of <code><head></code> (if present) - JS is inserted at the end of <code><body></code> (if present)</p> <p>If you used <code>{% component_js_dependencies %}</code> or <code>{% component_css_dependencies %}</code>, then the JS and CSS will be inserted only at these locations.</p> <p>Example: <div class=highlight><pre><span></span><code><a id=__codelineno-0-1 name=__codelineno-0-1 href=#__codelineno-0-1></a><span class=k>def</span> <span class=nf>my_view</span><span class=p>(</span><span class=n>request</span><span class=p>):</span>
|
||||
<a id=__codelineno-0-2 name=__codelineno-0-2 href=#__codelineno-0-2></a> <span class=n>template</span> <span class=o>=</span> <span class=n>Template</span><span class=p>(</span><span class=s1>'''</span>
|
||||
<a id=__codelineno-0-3 name=__codelineno-0-3 href=#__codelineno-0-3></a><span class=s1> {</span><span class=si>% lo</span><span class=s1>ad components %}</span>
|
||||
<a id=__codelineno-0-4 name=__codelineno-0-4 href=#__codelineno-0-4></a><span class=s1> <!doctype html></span>
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -2,194 +2,194 @@
|
|||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/SUMMARY/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/migrating_from_safer_staticfiles/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/release_notes/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/authoring_component_libraries/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/component_registry/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/hooks/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/provide_inject/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/rendering_js_css/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/tag_formatter/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/advanced/typing_and_validation/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/access_component_input/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/autodiscovery/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/component_context_scope/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/components_as_views/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/components_in_python/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/components_in_templates/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/defining_js_css_html_files/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/html_attributes/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/single_file_components/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/slots/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/template_tag_syntax/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/concepts/fundamentals/your_first_component/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/devguides/dependency_mgmt/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/devguides/slot_rendering/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/devguides/slots_and_blocks/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/guides/setup/dev_server_setup/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/guides/setup/logging_and_debugging/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/guides/setup/syntax_highlight/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/code_of_conduct/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/community/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/compatibility/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/contributing/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/development/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/installation/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/license/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/security_notes/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/overview/welcome/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/api/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/commands/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/components/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/exceptions/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/middlewares/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/settings/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/tag_formatters/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/template_tags/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/template_vars/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
<url>
|
||||
<loc>https://emilstenstrom.github.io/django-components/latest/reference/urls/</loc>
|
||||
<lastmod>2024-12-04</lastmod>
|
||||
<lastmod>2024-12-06</lastmod>
|
||||
</url>
|
||||
</urlset>
|
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
[
|
||||
{
|
||||
"version": "dev",
|
||||
"title": "dev (e88e3af)",
|
||||
"title": "dev (be27c1c)",
|
||||
"aliases": []
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue