Commit graph

170 commits

Author SHA1 Message Date
Emil Stenström
c67fd29bdd Move in_slot_node helper into Component class. 2021-03-10 17:47:51 +01:00
Emil Stenström
c0c5a94908 Rename duplicate ComponentRegistryTest.
Also move registry test to registry.
2021-03-10 12:25:28 +01:00
Emil Stenström
b30506087c Recommend the component_[css/js}_dependencies tags. 2021-03-06 10:23:31 +01:00
Emil Stenström
3c1ef43198 Bump version. 2021-02-27 16:40:47 +01:00
Emil Stenström
c6b20e4cb0 Make registering a component with a decorator the default. 2021-02-27 16:40:16 +01:00
Emil Stenström
b9446c2818
Add support for calling register as a decorator (#38) 2021-02-27 16:38:16 +01:00
Dan Jacob
10a117ee88 Class decorator and test 2021-02-27 16:49:06 +02:00
Emil Stenström
968967b1b5
Update README.md 2021-02-23 22:30:01 +01:00
Emil Stenström
4a4d976ce4
Update README.md 2021-02-23 22:29:08 +01:00
contrib-readme-bot
2e86328345 contrib-readme-action has updated readme 2021-02-23 21:28:29 +00:00
Emil Stenström
a0c8838731 Update to latest version of contributor bot. 2021-02-23 22:28:01 +01:00
Emil Stenström
d48502c40b Add test for calling component with positional name. 2021-02-20 23:58:00 +01:00
Emil Stenström
a87b6734f4
Missing name in component_block (fixes #32). 2021-02-20 23:53:45 +01:00
contrib-readme-bot
91d12b6c67 contrib-readme-action has updated readme 2021-02-20 09:37:27 +00:00
Emil Stenström
3ac77f563b Add documentation of settings. 2021-02-20 10:36:47 +01:00
Emil Stenström
475bc8720f Add tests for components with dynamic template. 2021-02-20 10:04:10 +01:00
Emil Stenström
6906888b2c
Update test running badge 2021-02-18 09:50:03 +01:00
contrib-readme-bot
2ff3b3291c contrib-readme-action has updated readme 2021-02-16 08:28:27 +00:00
Emil Stenström
754fe20dce Rename package to django_components on PyPI. 2021-02-16 09:27:56 +01:00
Emil Stenström
f911a73ffb Bump version. 2021-02-15 21:24:17 +01:00
Emil Stenström
2b8876bb7c Remove PyPI classifiers for unsupported versions. 2021-02-15 21:22:42 +01:00
Emil Stenström
39bfaae2eb Stop running tests for non-supported versions. 2021-02-15 21:22:26 +01:00
Emil Stenström
26f39c73f3 This is a difference between Django 3.0 and 3.1. 2021-02-15 21:22:07 +01:00
Emil Stenström
f188fab540 Remove unnessesary setup call. 2021-02-15 21:20:57 +01:00
Emil Stenström
07986c5216
Caching templates to allow for dynamic template generation
Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2021-02-15 21:07:14 +01:00
Emil Stenström
3919943cbd Bump version. 2021-02-12 22:39:08 +01:00
Emil Stenström
8f2440a757 Remove six. 2021-02-12 22:38:58 +01:00
Emil Stenström
95765f6941 Update install_requires too. 2021-02-12 22:35:15 +01:00
Emil Stenström
9b402412f6 Bump version. 2021-02-12 21:10:41 +01:00
Emil Stenström
2c95b0930f Remove support for Python < 3.6 and Django < 2.2. 2021-02-12 21:10:33 +01:00
Emil Stenström
ab7e97658f Bump version. 2021-02-06 10:11:17 +01:00
rbeard0330
87f9994c81
Performance (+50%): Compile ComponentNode at creation, not render (#22)
Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2021-02-06 10:09:57 +01:00
contrib-readme-bot
d61c0fa469 contrib-readme-action has updated readme 2021-02-05 23:00:24 +00:00
Emil Stenström
189410cb0d Add documentation on how components are loaded. 2021-02-06 00:00:00 +01:00
contrib-readme-bot
63a63815e1 contrib-readme-action has updated readme 2021-02-05 22:43:07 +00:00
Emil Stenström
7139e6e590 Fix broken workflow. 2021-02-05 23:42:39 +01:00
Emil Stenström
d6219f4155 Allow running manually. 2021-02-05 23:38:33 +01:00
Emil Stenström
a2f604fab0 Descriptive names for things. 2021-02-05 23:38:21 +01:00
Emil Stenström
f50878cfc8 Add contributors to README. 2021-02-05 23:35:05 +01:00
Emil Stenström
8a7397efd3 Rename index to tests to make intention clear. 2021-02-05 23:34:52 +01:00
Emil Stenström
55d9b3756c Run workflow on all PRs. 2021-02-05 21:54:42 +01:00
Emil Stenström
bb3193cd4c Bump version. 2021-02-05 21:33:33 +01:00
Dan Jacob
4df314b7f6
Autodiscover components in components.py inside an app (#24)
Co-authored-by: @danjac
2021-02-05 21:31:09 +01:00
Emil Stenström
ce7906b6f4 Bump version. 2021-01-31 23:20:56 +01:00
rbeard0330
1ea86fc50d
Create cloned template for rendering so test instrumentation works.
Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2021-01-31 23:18:04 +01:00
Emil Stenström
8c784f3a4c Bump version. 2021-01-25 12:34:08 +01:00
rbeard0330
2633c3f08f
Pass context into component tags by default, and let components disable with "only" (#20)
Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2021-01-25 12:31:54 +01:00
Emil Stenström
a99c8d7ad0 Bump version. 2021-01-17 23:40:29 +01:00
Emil Stenström
92829bf297 Add badge with number of downloads. 2021-01-17 23:39:31 +01:00
Emil Stenström
48d06374dc Use GitHub Actions badge, not Travis. 2021-01-17 23:36:56 +01:00