Commit graph

399 commits

Author SHA1 Message Date
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
Emil Stenström
749065be51 Remove travis. 2021-01-17 23:34:19 +01:00
Emil Stenström
710a406a7b Tox-gh-actions does not support 3.4, so remove it. 2021-01-17 23:30:41 +01:00
Emil Stenström
0ecf1fc45b Add GitHub Action for running tests. 2021-01-17 23:25:56 +01:00
Emil Stenström
8b3760458b Nitpick: Indentation. 2021-01-04 22:23:04 +01:00
Emil Stenström
7c57f06f3d Update compatibility table. 2021-01-03 08:01:43 +01:00
Emil Stenström
e634a5a517 Bump version. 2020-12-30 08:02:48 +01:00
rbeard0330
979dc82eda
Fix bug where template with multiple component_block tags could raise KeyError (#19)
Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2020-12-30 08:01:57 +01:00
Emil Stenström
ed3f3125da Bump version. 2020-12-28 10:43:35 +01:00
rbeard0330
93b8a7404a
Rework of context handling (#18)
Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2020-12-28 10:40:35 +01:00
Emil Stenström
88fe2fc3b7 Add support for Python 3.9, Django 3.1 and drop unsupported combinations. 2020-12-14 20:44:23 +01:00
Emil Stenström
9c3446dc24 Add list of supported Django versions. 2020-12-14 20:43:09 +01:00
Emil Stenström
e9767dd54a Update email adress. 2020-12-14 20:42:39 +01:00
Emil Stenström
a9867ff83e Bump version. 2020-12-14 18:47:02 +01:00
rbeard0330
be0a75e2a3
Missing context variables and kwargs in component_block (#17)
* Fix issue with missing variables by binding template to context in Component.render method.
* Pass extra_context to Component.render()

Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2020-12-14 18:25:36 +01:00
Emil Stenström
ab46ec7d69 Bump version. 2020-12-08 23:53:21 +01:00
Emil Stenström
4c14675c3a Support specifying block names with single quotes.
Fixes #15
2020-12-08 23:41:10 +01:00
Emil Stenström
e9fba9538f Add trick to make tests pass on Django 1.11 too. 2020-12-08 23:33:36 +01:00
Emil Stenström
ec7b10f4db Django 3.1 no longer outputs type="text/javascript". 2020-11-10 21:54:15 +01:00
Marc Fargas
d874efd72e Add Django classifier to PyPI
setup.py does not set the `Framework :: Django` classifier which makes it less discoverable by potential new users.
2020-11-02 20:39:36 +01:00
Emil Stenström
bf8fee70c3 Upgrade to latest version of isort. 2020-11-02 15:09:02 +01:00
Emil Stenström
f4bad5d43c Upgrade dependencies. 2020-11-02 15:08:38 +01:00