Commit graph

213 commits

Author SHA1 Message Date
Dylan Castillo
2ed3b40d05 Add type hints 2024-03-02 14:39:26 +01:00
Emil Stenström
5a13a611f5
Update README.md 2024-02-26 22:59:09 +01:00
Emil Stenström
58f46448bd
Merge branch 'master' into simplify-api 2024-02-26 22:52:55 +01:00
Emil Stenström
c932f28cb4 Make a big version jump to signify big change. 2024-02-26 22:51:49 +01:00
Dylan Castillo
b5acdd6a99 Add django-htmx-components 2024-02-24 15:25:15 +01:00
Emil Stenström
a32128a420 Don't rely on BASE_DIR being a Path. 2024-02-22 08:31:50 +01:00
Emil Stenström
94110b5e91 Add red notice to README. 2024-02-21 22:38:06 +01:00
Emil Stenström
eb5f5952ae Remove duplicate mention of component tag. 2024-02-21 22:38:06 +01:00
Emil Stenström
edf3885632 Replace all instances of component_block with component. Remove duplicate tests. 2024-02-21 22:38:06 +01:00
Emil Stenström
ef6a082238 Remove component tag in favour of component_block. 2024-02-21 22:38:06 +01:00
Dylan Castillo
91b4accfeb
Render components as views (#366) (thanks @dylanjcastillo) 2024-01-24 22:36:57 +01:00
Dylan Castillo
560b721523 Change context behavior setting to enum 2024-01-15 21:58:42 +01:00
Dylan Castillo
8971849922 Revert formatting changes 2024-01-15 21:58:42 +01:00
Dylan Castillo
aa1b4e1903 Add setting to isolate components' context by default 2024-01-15 21:58:42 +01:00
Dylan Castillo
d38f6a8426 Revert formatting changes 2024-01-15 21:58:42 +01:00
Dylan Castillo
4da76c178b Add setting to isolate components' context by default 2024-01-15 21:58:42 +01:00
Dylan Castillo
864c85b067 Update README.md 2024-01-14 22:40:17 +01:00
Dylan Castillo
ec656f25cb Document ComponentDependencyMiddleware 2024-01-14 22:40:17 +01:00
Dylan Castillo
d7cfb9ae9e Fix example in readme 2024-01-14 22:36:55 +01:00
Dylan Castillo
70a2a01400 Implement single file components 2024-01-14 22:36:55 +01:00
Emil Stenström
99b0cbc67a Update django-components to support Python 3.12 and Django 5.0. 2023-12-09 13:41:34 +01:00
Wessel Blokzijl
63ce90f25a Rename calendar.js/css to script.js/style.css 2023-12-03 12:50:05 +01:00
Wessel Blokzijl
89498af722 Clean up README.md
- Remove trailing whitespace
- Use the same quotes as django defaults
- Use consisten name for css and js in tutorial
2023-12-03 12:50:05 +01:00
Hanif Birgani
c31af0c549 feat(docs): add startcomponent docs to the README.md file. related #323 2023-10-21 23:37:36 +02:00
Arkadiusz Adamski
a56fc40f19 fix: endfill instead of endslot in README.md 2023-08-26 09:42:57 +02:00
Jake Duth
480bb45d35 Add missing syntax 2023-08-14 07:11:33 +02:00
adriaan
2d86f042da
Implement #231 – default slot filling (#269)
* Add 'default' slot option + implicit fills; tests; docs
* Differentiate between standard fillnodes and implicitfillnodes on type lvl
* Reworking slot-fill rendering logic. Simplifying component interfact. Add new get_string_template method
* First working implementation of chainmap instead of stacks for slot resolution
* Stop passing FillNode to Component initalizer -> better decoupling
* Treat fill name and alias and component name as filterexpression, dropping namedvariable
* Name arg of if_filled tags and slots must be string literal
2023-05-18 14:58:46 +02:00
adriaan
fa41387a53
Introduce safer_staticfiles app as user-friendly security measure for #260 (#261)
* Introduce safer_staticfiles app to ignore .py,.html as security measure. Docs up-to-date

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2023-04-11 13:55:11 +02:00
Emil Stenström
d658fecf5c Remove contributors, they are already in the sidebar. 2023-03-24 21:47:15 +01:00
github-actions[bot]
82fa0e9f5d
docs(contributor): contrib-readme-action has updated readme 2023-03-23 20:38:24 +00:00
github-actions[bot]
9a27c5c9cc
docs(contributor): contrib-readme-action has updated readme 2023-03-21 21:58:20 +00:00
github-actions[bot]
a0f29b249d docs(contributor): contrib-readme-action has updated readme 2023-03-15 00:02:34 +01:00
Emil Stenström
2ae7dfcee3
Update README.md 2023-03-14 23:59:11 +01:00
lemontheme
898d148382 Add required kwd to slot tag and add test
Move required slot check to SlotNode.render(); clean up needed

Remove unused code; drop caching

Update docs

Incorporate PR feedback
2023-03-14 23:40:21 +01:00
lemontheme
a8dfcce24e Introduce {% fill %} replacing 'fill' func of 'slot' tag
Partial implementation fill-tags plus update tests

Implement {% fill %} tags. Next: update tests.

Bring back support for {%slot%} blocks for bckwrd-compat and implement ambig. resolution policy

Update tests to use fill blocks. Add extra checks that raise errors

Add new tests for fill-slot nesting

Update README. Editing still required

remove unused var ctxt after flake8 complaint

fix flake8 warning about slotless f-string

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Add new slot aliases in fill context. Clean up rendering logic in Component. Update docs.

fix flake8, isort, black errors

Refactor duplicated name validation

Add if_filled tag + elif_filled...else_filled...endif_filled for cond. slots

Fix mistake in do_if_filled() docstring

Upload templates for tests! D'oh

Incorporate PR feedback

Drop Literal type hint; Use isort off-on instead of skip in tests

Treat all fill,slot,if_filled,component names as variables

Reset sampleproject components

Add test for variable filled name

Update examples in docs
2023-03-14 23:40:21 +01:00
github-actions[bot]
ac8c12f43d
docs(contributor): contrib-readme-action has updated readme 2023-01-07 12:31:57 +00:00
github-actions[bot]
e8a5a4aee3
docs(contributor): contrib-readme-action has updated readme 2022-09-10 14:12:57 +00:00
Mandeep Gill
156587f39c
Fix param name of autodiscovery -> autodiscover
The docs say to set `autodiscovery: False` in `settings.COMPONENTS` to disable autodiscovery, but in the `app_settings` code the field is called `autodiscover`.

Cheers!
2022-09-10 14:45:38 +01:00
github-actions[bot]
05e8e15ee3
contrib-readme-action has updated readme 2022-07-27 08:45:42 +00:00
github-actions[bot]
4a1c8be2ae
contrib-readme-action has updated readme 2022-07-26 18:14:26 +00:00
KimSia, Sim
bb256f2ec8
🐛Prevent potential null elements
because {% component_js_dependencies %} loads all the components regardless
2022-07-23 14:42:48 +08:00
Emil Stenström
e30cc0a635 Merge branch 'master' of https://github.com/EmilStenstrom/django-components 2022-07-18 09:19:03 +02:00
Emil Stenström
ea4c709811 Update recommendations for how to setup components. 2022-07-18 09:18:59 +02:00
Emil Stenström
1a4144e2cf
Update README.md 2022-07-18 09:09:42 +02:00
github-actions[bot]
0366569a69
contrib-readme-action has updated readme 2022-07-15 17:31:52 +00:00
KimSia Sim
5910d8d004
Update README.md
Typo in `believe` and also missing `{}`  for `{ slot.super }`
2022-07-15 14:00:39 +08:00
github-actions[bot]
8ad135d30e
contrib-readme-action has updated readme 2022-07-14 11:31:55 +00:00
Emil Stenström
f4c477e412 Update supported Django versions. 2022-07-14 10:18:03 +02:00
github-actions[bot]
e1feb72214
contrib-readme-action has updated readme 2022-05-31 20:30:03 +00:00
contrib-readme-bot
6385b41f17 contrib-readme-action has updated readme 2021-11-08 22:53:29 +00:00