Commit graph

239 commits

Author SHA1 Message Date
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
Juro Oravec
dae49c42a8 refactor: add tests 2024-04-14 13:10:45 +02:00
Juro Oravec
3050dc71b9 refactor: add test 2024-04-11 23:44:36 +02:00
Dylan Castillo
0f278f3c25
Fix issue #421 (#422) 2024-04-04 08:29:26 +02:00
Juro Oravec
37fd901908
Resolve media and template files relative to component class dir (#395), thanks @JuroOravec
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
2024-03-23 19:01:39 +01:00
Juro Oravec
b14dec9777
Add mypy support (#396), thanks @JuroOravec 2024-03-15 23:31:15 +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
48fe8171b4 Reformat lines that became too long. And enforce 119 line length. 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
5b296b02a3 Remove more prints, sorry :/ 2024-02-08 08:45:00 +01:00