Commit graph

826 commits

Author SHA1 Message Date
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
Emil Stenström
34098c375a Sort imports to isort is happy. 2020-11-02 15:08:26 +01:00
Emil Stenström
9f9ff83273 Bump version. 2020-07-14 21:35:27 +02:00
Emil Stenström
b95c6a91f5 Bump version. 2020-07-14 21:34:58 +02:00
Bradley Stuart Kirton
77e5e03e45 Replace generators with for loops and lists 2020-07-10 13:07:51 +02:00
Bradley Stuart Kirton
06f7cd9b3a Remove pytest-cov and pytest.ini 2020-07-10 13:07:51 +02:00
Bradley Stuart Kirton
2c644d4c06 Add pytest-cov
Apply black formatting
Add component_css_dependencies_tag and component_js_dependencies_tag tags
Add convenience methods render_css_dependencies and render_js_dependencies to component class
Create additional test cases
Add license to setup.py
Add pytest.ini config file
2020-07-10 13:07:51 +02:00
Emil Stenström
e9929b1bff
Merge pull request #8 from BradleyKirton/master
Update README
2020-07-08 09:37:20 +02:00
Bradley Stuart Kirton
a6d729e7a6 Update README to reflect component tags name
Update template method input name from date to context as this was a bit confusing
2020-07-08 07:21:37 +02:00
Emil Stenström
08ca6ad182 Bump version. 2020-07-03 08:25:25 +02:00
Emil Stenström
c5ed0a5d77 Fix packaging bug: By default submodules are not included. 2020-07-03 08:25:19 +02:00
Emil Stenström
a5b64b47b7 Fix spelling. 2020-06-11 22:44:27 +02:00
Emil Stenström
e9d69a1b6c Bump version. 2020-06-11 21:29:57 +02:00
Emil Stenström
3cdcf343ce Fix incorrect URL in setup.py. 2020-06-11 21:29:38 +02:00
Emil Stenström
e143a6f455 Bump version. 2020-06-08 00:06:01 +02:00
Emil Stenström
1e42e2508e Remove stray log statements. 2020-06-08 00:05:39 +02:00
Emil Stenström
5f63a6a6bd Add test for component with undefined template method. 2020-06-07 17:07:24 +02:00
Emil Stenström
ff2a674200 Add flake8 and isort to CI. 2020-06-07 08:46:06 +02:00
Emil Stenström
b2f61b61ad Fix flake8. 2020-06-07 08:45:54 +02:00
Emil Stenström
914476dc36 Bump version. 2020-06-06 11:34:04 +02:00
Emil Stenström
b5eb6f4db1 Call parse_bits in django < 2.0 compatible way. 2020-06-06 11:27:07 +02:00
Emil Stenström
24369fce80 Make parse_bits call backwards compatible. 2020-06-06 09:36:21 +02:00
Emil Stenström
9811a88904 Add backwards compatible getfullargspec and TokenType. 2020-06-06 09:29:51 +02:00
Emil Stenström
00c27f2b3e Specify syntax. 2020-06-06 09:17:50 +02:00