Juro Oravec
dd6d668b5e
fix: do not render slot tag when extracting fill tags ( #786 )
...
* fix: do not render slot tag when extracting fill tags
* refactor: show component path in error message
* docs: update changelog
* refactor: fix tests
2024-11-27 17:19:41 +01:00
Juro Oravec
5fc27a041f
fix: ensure consistent order of scripts in Component.Media.js ( #783 )
2024-11-26 21:55:14 +00:00
Juro Oravec
bb341fce30
Revert "docs: Split README ( #775 )" ( #781 )
...
This reverts commit 4d5fecf3ee
.
2024-11-26 18:21:12 +01:00
Juro Oravec
9f98c7e4df
fix: allow components to accept default fill even if no default slot encountered during rendering ( #780 )
2024-11-26 17:42:00 +01:00
Juro Oravec
f5fd3c02cd
fix: do NOT render component tags when parsing {% component %} body for fills ( #778 )
...
* refactor: do NOT render component tags when parsing {% component %} body for fills
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactor: fix typo
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-11-26 14:52:55 +01:00
Juro Oravec
4d5fecf3ee
docs: Split README ( #775 )
2024-11-25 23:46:52 +01:00
Juro Oravec
5fd45ab424
chore: Push dev to master to release v0.110 ( #767 )
...
* feat: skeleton of dependency manager backend (#688 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* refactor: selectolax update and tests cleanup (#702 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* refactor: move release notes to own file (#704 )
* chore: merge changes from master (#705 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yassin Rakha <yaso2go@gmail.com>
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
fix for nested slots (#698 ) (#699 )
* refactor: remove joint {% component_dependencies %} tag (#706 )
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* refactor: split up utils file and move utils to util dir (#707 )
* docs: Move docs inside src/ to allow imports in python scripts (#708 )
* refactor: Docs prep 1 (#715 )
* refactor: Document template tags (#716 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* refactor: pass slot fills in template via slots param (#719 )
* chore: Merge master to dev (#729 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Yassin Rakha <yaso2go@gmail.com>
Co-authored-by: Emil Stenström <emil@emilstenstrom.se>
Co-authored-by: Tom Larsen <larsent@gmail.com>
fix for nested slots (#698 ) (#699 )
* fix: Do not raise error if multiple slots with same name are flagged as default (#727 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* refactor: tag formatter - allow fwd slash in end tag (#730 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* refactor: Use lowercase names for registry settings (#731 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* docs: add docstrings (#732 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* feat: define settings as a data class for type hints, intellisense, and docs (#733 )
* refactor: fix reload-on-change logic, expose autodiscover's dirs-getting logic, rename settings (#734 )
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* docs: document settings (#743 )
* docs: document settings
* refactor: fix linter errors
* feat: passthrough slots and more (#758 )
* feat: passthrough slots and more
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* refactor: remove ComponentSlotContext.slots
* refactor: update comment
* docs: update changelog
* refactor: update docstrings
* refactor: document and test-cover more changes
* refactor: revert fill without name
* docs: update README
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* fix: apostrophes in tags (#765 )
* refactor: fix merge error - duplicate code
---------
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-11-25 09:41:57 +01:00
Juro Oravec
ff70be35e4
refactor: fix for nested slots ( #698 ) ( #699 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-10-10 14:37:21 +02:00
Juro Oravec
849a869a66
feat: add JS dependency manager ( #666 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-22 16:42:41 +02:00
Juro Oravec
ee9b92975a
fix: autoimport with nested apps ( #672 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-14 22:47:30 +02:00
Juro Oravec
6b3c112968
fix: Using empty default fill with no whitespace ( #673 )
2024-09-14 22:22:22 +02:00
Serafeim Papastefanos
d1224c13c9
Make sure BASE_DIR is a Path
2024-09-12 09:34:22 +03:00
Juro Oravec
239923b221
refactor: pass instantiated component to as_view ( #664 )
2024-09-11 21:55:11 +02:00
Juro Oravec
e1382d3ccd
refactor: Remove safer_staticfiles, replace STATICFILES_DIRS with COMPONENTS.dirs, support [app]/components
( #652 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-11 08:45:55 +02:00
Juro Oravec
841dd77e91
refactor: Fix template caching, expose cached_template
, Component.template API changes ( #647 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-06 22:40:39 +02:00
Juro Oravec
e712800f5e
feat: add self
context var and make is_filled
into attribute ( #632 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-04 21:41:20 +02:00
Juro Oravec
2d0f270df4
fix: populate RequestContext with context processors ( #643 )
2024-09-04 21:31:44 +02:00
Juro Oravec
0cfc40231b
feat: add component hooks ( #631 )
2024-08-31 13:38:28 +02:00
Juro Oravec
4a9cf7e26d
feat: validate component inputs if types are given ( #629 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-29 23:09:36 +02:00
Juro Oravec
e76227b8df
feat: Add dynamic component ( #627 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-29 11:28:00 +02:00
Juro Oravec
ab059f362d
Multi-line tag support, watch component files, and cleanup ( #624 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-28 07:46:48 +02:00
Juro Oravec
3b1f6088a0
feat: allow different template settings for ComponentRegistries ( #615 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-27 06:18:50 +02:00
Juro Oravec
b90961b4a7
feat: dynamic slots, fills, and provides ( #609 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-25 22:35:10 +02:00
Juro Oravec
39cff5a1d0
feat: add dynamic expressions ( #605 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-25 12:53:40 +02:00
Juro Oravec
d6ec62c6be
feat: add spread operator ( #596 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-24 15:01:18 +02:00
Gabriel Dugny
95400944ec
chore: working docs
2024-08-24 11:23:24 +02:00
Gabriel Dugny
163b0941c2
chore: init docs
2024-08-24 11:23:24 +02:00
Juro Oravec
899b9a2738
refactor: move kwargs resolution to render-time + cleanup ( #594 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-23 18:15:28 +02:00
Felipe Batista da Silva
107702bcbd
fix: mypy checking with django plugin is broken
2024-08-23 15:57:17 +02:00
Juro Oravec
efd05d6150
feat: Typing for component inputs and access inputs during render ( #585 )
2024-08-22 23:42:34 +02:00
Juro Oravec
3a599ff369
fix: Allow None
for attrs in html_attrs
tag ( #591 )
2024-08-21 14:32:36 +02:00
Juro Oravec
71d8679e8d
feat: TagFormatter - Allow users to customize component template tags ( #572 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-18 16:58:56 +02:00
Juro Oravec
b8e92dac37
fix: Set Context.template
for components to work with include ( #582 )
2024-08-16 23:31:00 +02:00
Juro Oravec
d6dec450ed
refactor: prepare registry for custom template tags and docs ( #566 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-05 22:31:49 +02:00
Juro Oravec
e771a0aaaf
refactor: Use top-level exports as public API ( #562 )
...
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-08-03 08:30:39 +02:00
Jake Duth
6d8e6d8a49
Fix upgradecomponent ( #563 )
2024-07-30 09:37:34 +02:00
Juro Oravec
fbbbf6c694
fix: do not aggregate kwargs that start with colon ( #561 )
2024-07-29 20:58:55 +02:00
Juro Oravec
8cb88558f0
refactor: Prepare autodiscover and template loader for v1 ( #533 )
2024-07-29 20:27:35 +02:00
Juro Oravec
2953ca4dba
fix: do not monkeypatch already patched templates ( #543 )
2024-07-08 11:02:50 +02:00
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
Juro Oravec
36cd6e3f06
refactor: compat with comp as view by reusing comp instance
2024-06-11 21:41:56 +02:00
Juro Oravec
7c52acf411
refactor: linter fixes
2024-06-11 15:08:02 +02:00
Juro Oravec
c6e3c0a213
refactor: update Component.render docstring
2024-06-11 15:06:14 +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
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
fee26ec1d8
feat: refactor render fn and allow slots as functions
2024-06-02 16:22:38 +02:00
Juro Oravec
8ca2814ee3
feat: dependency injection with inject/provide ( #506 )
2024-06-01 10:51:21 +02:00
Juro Oravec
f3e0bf6b62
refactor: change context_behavior default to "django" ( #515 )
2024-06-01 09:24:52 +02:00