mirror of
https://github.com/django-components/django-components.git
synced 2025-09-20 04:39:45 +00:00
feat: render fragments without document strategy (#1339)
This commit is contained in:
parent
aa14e3698d
commit
c72fed8255
11 changed files with 217 additions and 26 deletions
|
@ -2697,11 +2697,12 @@ class Component(metaclass=ComponentMeta):
|
|||
|
||||
- [`"document"`](../../concepts/advanced/rendering_js_css#document) (default)
|
||||
- Smartly inserts JS / CSS into placeholders or into `<head>` and `<body>` tags.
|
||||
- Inserts extra script to allow `fragment` types to work.
|
||||
- Assumes the HTML will be rendered in a JS-enabled browser.
|
||||
- Requires the HTML to be rendered in a JS-enabled browser.
|
||||
- Inserts extra script for managing fragments.
|
||||
- [`"fragment"`](../../concepts/advanced/rendering_js_css#fragment)
|
||||
- A lightweight HTML fragment to be inserted into a document with AJAX.
|
||||
- No JS / CSS included.
|
||||
- Fragment will fetch its own JS / CSS dependencies when inserted into the page.
|
||||
- Requires the HTML to be rendered in a JS-enabled browser.
|
||||
- [`"simple"`](../../concepts/advanced/rendering_js_css#simple)
|
||||
- Smartly insert JS / CSS into placeholders or into `<head>` and `<body>` tags.
|
||||
- No extra script loaded.
|
||||
|
@ -3186,11 +3187,12 @@ class Component(metaclass=ComponentMeta):
|
|||
|
||||
- [`"document"`](../../concepts/advanced/rendering_js_css#document) (default)
|
||||
- Smartly inserts JS / CSS into placeholders or into `<head>` and `<body>` tags.
|
||||
- Inserts extra script to allow `fragment` types to work.
|
||||
- Assumes the HTML will be rendered in a JS-enabled browser.
|
||||
- Requires the HTML to be rendered in a JS-enabled browser.
|
||||
- Inserts extra script for managing fragments.
|
||||
- [`"fragment"`](../../concepts/advanced/rendering_js_css#fragment)
|
||||
- A lightweight HTML fragment to be inserted into a document with AJAX.
|
||||
- No JS / CSS included.
|
||||
- Fragment will fetch its own JS / CSS dependencies when inserted into the page.
|
||||
- Requires the HTML to be rendered in a JS-enabled browser.
|
||||
- [`"simple"`](../../concepts/advanced/rendering_js_css#simple)
|
||||
- Smartly insert JS / CSS into placeholders or into `<head>` and `<body>` tags.
|
||||
- No extra script loaded.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue