Commit graph

148 commits

Author SHA1 Message Date
Juro Oravec
2684b41c07
fix: various fixes for inject/provide and html_attrs (#541)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-08 10:25:38 +02:00
Juro Oravec
23d91218bd
refactor: usage notes + tests for safer_staticfiles (#538)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-07-08 07:25:03 +02:00
Juro Oravec
3c5a7ad823
feat: paths as objects + user-provided Media cls + handle static (#526)
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
2024-06-21 19:36:53 +02:00
pre-commit-ci[bot]
49c4e84f07 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-06-11 19:43:02 +00:00
Juro Oravec
36cd6e3f06 refactor: compat with comp as view by reusing comp instance 2024-06-11 21:41:56 +02:00
Juro Oravec
5c89d4dbeb refactor: pass slot data and slot default to slot render fn and rename LazySlot to SlotRef 2024-06-11 14:34:04 +02:00
Juro Oravec
40f4476993 refactor: add test for response_class 2024-06-02 16:37:22 +02:00
pre-commit-ci[bot]
a5a0c74d31 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-06-02 14:23:56 +00:00
Juro Oravec
5f07f3d4da refactor: update tests 2024-06-02 16:22:49 +02:00
Juro Oravec
8ca2814ee3
feat: dependency injection with inject/provide (#506) 2024-06-01 10:51:21 +02:00
Juro Oravec
b8ff610a48
fix: compat with block tag in django mode (#511)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-30 08:34:58 +02:00
Zach Bellay
0101f6dae6
fix: typo in html_attrs defaults dict fetching (#513)
Co-authored-by: Juro Oravec <juraj.oravec.josefson@gmail.com>
2024-05-30 08:29:57 +02:00
Juro Oravec
95f6554f4c
tests: Split test files and run template tests under both context behavior modes (#509)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-28 08:23:32 +02:00
Juro Oravec
edb2f347f2
refactor: change fill alias from "as var" to default=var (#504) 2024-05-23 20:25:16 +02:00
Juro Oravec
b1b66fd751
feat: Scoped slots + Updated docs (#495)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-23 07:08:10 +02:00
Juro Oravec
610475353f
feat: Support for HTML attributes and html_attrs tag (#491) 2024-05-12 11:21:34 +02:00
Alex Martin (Contexte)
d18aefc629
fix: make template_loader consider tuples for STATICFILES_DIRS (#489)
Co-authored-by: Juro Oravec <juraj.oravec.josefson@gmail.com>
2024-05-07 21:41:46 +02:00
Juro Oravec
dd6540cfcc
fix: incorrect name for default slot in is_filled dict (#482) 2024-05-07 15:11:40 +02:00
Juro Oravec
bf61df81b7
feat: support special chars # @ - . : in component kwargs (#477)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-05 14:23:27 +02:00
Juro Oravec
49f64ec61c refactor: fix linter issues 2024-05-03 15:03:01 +02:00
Juro Oravec
13ecb2dace
Merge branch 'master' into 470-refactor-tests 2024-05-03 12:10:06 +02:00
pre-commit-ci[bot]
3bef2cae11 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-02 21:17:20 +00:00
Emil Stenström
7de554b440 Cleanup unneeded stuff. 2024-05-02 23:14:28 +02:00
Emil Stenström
9b56f1d165 Inline test_replace_context_in_view_with_insecure_content. 2024-05-02 23:11:05 +02:00
Emil Stenström
61b0832525 Inline test_replace_slot_in_view_with_insecure_content. 2024-05-02 23:09:17 +02:00
Emil Stenström
2949969ea5 Inline test_replace_slot_in_view. 2024-05-02 23:00:40 +02:00
Emil Stenström
8d8ae35c0e Inline test_get_request & test_post_request. 2024-05-02 22:57:39 +02:00
Emil Stenström
678346313c Inline data for test_render_component_from_template. 2024-05-02 22:53:02 +02:00
pre-commit-ci[bot]
04d968ace9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-05-02 20:34:46 +00:00
Juro Oravec
8c4a55901c tests: add inline syntax highlight, inline template files 2024-05-02 22:33:02 +02:00
Juro Oravec
e566d8ecbb
fix: loader tags compatibility (#468) 2024-05-02 22:24:49 +02:00
Juro Oravec
3fc90e4956
feat: merge context settings, replace if_filled tag with var
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-05-01 20:55:09 +02:00
Juro Oravec
981eb59cf1
feat: Allow multiple slots with the same name in the same template
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-29 15:09:25 +02:00
Juro Oravec
29c931f150
refactor: fix slot fills for components nested in themselves (#456)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-25 20:36:05 +02:00
Juro Oravec
091da26da5
refactor: Tests cleanup and better test isolation (#452)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-25 14:20:33 +02:00
Juro Oravec
ae22eff8af
refactor: fix context vars missing in isolated slot (#455)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-04-25 12:08:20 +02:00
Juro Oravec
3ad0dd8677
refactor: fix slot context behavior (#445) 2024-04-23 21:35:45 +02:00
pre-commit-ci[bot]
9e6c645346 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-18 11:35:01 +00:00
Juro Oravec
eb40afba7b refactor: remove Django30CompatibleTestCase 2024-04-18 13:33:58 +02:00
Juro Oravec
bacd683c44 refactor: fix type imports in tests 2024-04-16 23:25:13 +02:00
pre-commit-ci[bot]
ab7f3e0cdb [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-16 23:25:13 +02:00
Juro Oravec
089cda54c5 refactor: fix tests 2024-04-16 23:25:13 +02:00
Juro Oravec
f3a2bcbc4f refactor: rename for easier debugging 2024-04-16 23:25:13 +02:00
Juro Oravec
1dd492314a refactor: use component_id instead of Template as slot fill cache key 2024-04-16 23:25:13 +02:00
pre-commit-ci[bot]
752567bf7c [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-14 14:49:07 +00:00
Juro Oravec
fd9c441024 refactor: fix linter errors 2024-04-14 16:48:55 +02:00
Juro Oravec
e6725c8445 refactor: update tests 2024-04-14 16:46:43 +02:00
Juro Oravec
5ca4313238 refactor: fix mypy error 2024-04-14 13:54:39 +02:00
Juro Oravec
1f72535cf1 refactor: skip test 2024-04-14 13:51:08 +02:00
pre-commit-ci[bot]
8ff35ae5e5 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-04-14 11:10:56 +00:00