Emil Stenström
681c540cb7
Can't use wahlrus operator in old pythons.
2022-07-18 09:21:10 +02:00
Emil Stenström
46533000cb
Bump version.
2022-07-18 09:19:38 +02: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
c0ed45b920
Improve structure of sampleproject.
2022-07-18 09:13:36 +02:00
Emil Stenström
18ee5ad3b0
Autodetect components inside component subdirectories to make setup easier.
2022-07-18 09:13:03 +02:00
Emil Stenström
1a4144e2cf
Update README.md
2022-07-18 09:09:42 +02:00
Emil Stenström
1d091f5099
Bump version.
2022-07-17 13:27:44 +02:00
Emil Stenström
2a72329041
Add sample project to repo to show config.
2022-07-17 13:27:17 +02:00
Emil Stenström
58c6e476f1
Automitically load component templates from directory where settings.py files is (old style), and from settings.py parent dir (new style).
2022-07-17 13:26:27 +02:00
Emil Stenström
373de73787
Merge branch 'master' of https://github.com/EmilStenstrom/django-components
2022-07-17 09:29:23 +02:00
Emil Stenström
16e2a8dda9
Introduce a sample project to illustrate setup.
2022-07-17 09:29:15 +02:00
Emil Stenström
07c9265a9a
Merge pull request #159 from EmilStenstrom/contributors-readme-action-GXkQ2YhoG9
...
contributors readme action update
2022-07-15 19:35:27 +02:00
github-actions[bot]
0366569a69
contrib-readme-action has updated readme
2022-07-15 17:31:52 +00:00
Emil Stenström
10560227a9
Merge pull request #157 from simkimsia/patch-1
...
Update README.md
2022-07-15 19:31:35 +02:00
KimSia Sim
5910d8d004
Update README.md
...
Typo in `believe` and also missing `{}` for `{ slot.super }`
2022-07-15 14:00:39 +08:00
Emil Stenström
87e2889cdf
Merge pull request #155 from EmilStenstrom/contributors-readme-action-tdC7RjzhNl
...
contributors readme action update
2022-07-14 13:38:57 +02:00
Emil Stenström
9d00320aeb
Merge branch 'master' of https://github.com/EmilStenstrom/django-components
2022-07-14 13:35:01 +02:00
Emil Stenström
1937d59410
Bump version.
2022-07-14 13:34:58 +02:00
github-actions[bot]
8ad135d30e
contrib-readme-action has updated readme
2022-07-14 11:31:55 +00:00
Emil Stenström
6005b48867
Allow passing in component_name as a variable (thanks @housUnus)
2022-07-14 13:31:33 +02:00
Emil Stenström
812e455dec
Update tests to include component_block versions too.
2022-07-14 13:29:35 +02:00
Emil Stenström
84fcaf7ba7
Add tests for calling template tag with variable.
2022-07-14 12:49:21 +02:00
Emil Stenström
29e6d1a4a0
Delay loading component until rendering, and clean up usage of component variable.
2022-07-14 12:47:06 +02:00
Emil Stenström
235c34a986
Merge branch 'patch-5' of https://github.com/housunus/django-components-as-variable into pr/housUnus/153
2022-07-14 10:59:46 +02:00
pre-commit-ci[bot]
16065367d5
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-07-14 10:34:34 +02:00
AIT ALI EL HOSAYN
bfd55f9fbe
Component name as variable
...
I have removed the exception raising when a variable without quotes is given, and keep the variable name until the render function where I'm resolving it if it's a String (which means it's a variable, not a component) then I'm moving the slot parts which relies on the component from __init__ to render after getting the component.
2022-07-14 10:34:34 +02:00
Emil Stenström
d3d3c83c8a
YAML converts 3.10 to 3.1 without quotes.
2022-07-14 10:22:11 +02:00
Emil Stenström
501a055fe2
Bump version.
2022-07-14 10:19:01 +02:00
Emil Stenström
f4c477e412
Update supported Django versions.
2022-07-14 10:18:03 +02:00
Emil Stenström
77e4cdc543
Remove deprecation warning in Django > 3.2.
2022-07-14 09:45:42 +02:00
Emil Stenström
98ea9405f9
Fix test breakage when setting accessed before django.setup().
2022-07-14 09:29:00 +02:00
pre-commit-ci[bot]
ff9367b214
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2022-07-12 12:44:54 +00:00
AIT ALI EL HOSAYN
bab9aa097f
Component name as variable
...
I have removed the exception raising when a variable without quotes is given, and keep the variable name until the render function where I'm resolving it if it's a String (which means it's a variable, not a component) then I'm moving the slot parts which relies on the component from __init__ to render after getting the component.
2022-07-12 13:44:16 +01:00
Emil Stenström
6fb08de236
Merge pull request #150 from EmilStenstrom/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-07-05 07:56:24 +02:00
pre-commit-ci[bot]
019c5b56ba
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 22.3.0 → 22.6.0](https://github.com/psf/black/compare/22.3.0...22.6.0 )
2022-07-04 22:48:43 +00:00
Emil Stenström
cc84df7d5c
Merge pull request #149 from EmilStenstrom/dependabot/pip/django-4.0.6
...
Bump django from 4.0.5 to 4.0.6
2022-07-04 19:46:04 +02:00
dependabot[bot]
fa14c3e28f
Bump django from 4.0.5 to 4.0.6
...
Bumps [django](https://github.com/django/django ) from 4.0.5 to 4.0.6.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/4.0.5...4.0.6 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-04 17:01:19 +00:00
Emil Stenström
8d754c51c4
Merge pull request #148 from EmilStenstrom/dependabot/pip/tox-3.25.1
...
Bump tox from 3.25.0 to 3.25.1
2022-06-30 19:37:25 +02:00
dependabot[bot]
df66ed16e5
Bump tox from 3.25.0 to 3.25.1
...
Bumps [tox](https://github.com/tox-dev/tox ) from 3.25.0 to 3.25.1.
- [Release notes](https://github.com/tox-dev/tox/releases )
- [Changelog](https://github.com/tox-dev/tox/blob/master/docs/changelog.rst )
- [Commits](https://github.com/tox-dev/tox/compare/3.25.0...3.25.1 )
---
updated-dependencies:
- dependency-name: tox
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-30 17:01:44 +00:00
Emil Stenström
69615f7612
Merge pull request #147 from EmilStenstrom/dependabot/pip/django-4.0.5
...
Bump django from 4.0.4 to 4.0.5
2022-06-02 15:14:55 +02:00
dependabot[bot]
008638128c
Bump django from 4.0.4 to 4.0.5
...
Bumps [django](https://github.com/django/django ) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/django/django/releases )
- [Commits](https://github.com/django/django/compare/4.0.4...4.0.5 )
---
updated-dependencies:
- dependency-name: django
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-06-01 17:04:23 +00:00
Emil Stenström
a8e8d9e333
Merge pull request #145 from EmilStenstrom/contributors-readme-action-ftCY8VfyQI
...
contributors readme action update
2022-05-31 22:43:36 +02:00
Emil Stenström
7659eb354a
Merge branch 'master' into contributors-readme-action-ftCY8VfyQI
2022-05-31 22:43:22 +02:00
Emil Stenström
ed2cd57bdc
Bump version.
2022-05-31 22:31:44 +02:00
github-actions[bot]
e1feb72214
contrib-readme-action has updated readme
2022-05-31 20:30:03 +00:00
Emil Stenström
9632c4540f
Fix #143 : ability to preload components (thanks @David-Guillot)
2022-05-31 22:29:48 +02:00
David Guillot
0ae04467c5
fix(tests): some minor anomalies
2022-04-29 00:06:06 +02:00
David Guillot
f67cd37dea
feat(templatetags): fix #143 , ability to preload components
2022-04-29 00:06:06 +02:00
David Guillot
021339d4a7
refactor(templatetags): make _RENDERED comment a constant
2022-04-29 00:01:50 +02:00