Commit graph

114 commits

Author SHA1 Message Date
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
Emil Stenström
c38343928c Add more examples in README. 2020-06-06 09:17:20 +02:00
Emil Stenström
45ee016169 Bump version. 2020-06-06 09:11:53 +02:00
Emil Stenström
d1405dda13 Add slots to components that can be filled when using component. 2020-06-06 09:11:27 +02:00
Emil Stenström
f6d2c5e003 Ignore stupid flake8 rule. 2020-06-06 09:10:16 +02:00
Emil Stenström
cb3236e063 Update dependencies. 2020-06-06 09:08:43 +02:00
Emil Stenström
b2726a6832 Contain all registry logic in helper methods. 2020-06-06 09:07:23 +02:00
Emil Stenström
ecba6e3ed9
Merge pull request #5 from EmilStenstrom/dependabot/pip/django-3.0.7
Bump django from 3.0.3 to 3.0.7
2020-06-05 23:31:48 +02:00
dependabot[bot]
614ef904b8
Bump django from 3.0.3 to 3.0.7
Bumps [django](https://github.com/django/django) from 3.0.3 to 3.0.7.
- [Release notes](https://github.com/django/django/releases)
- [Commits](https://github.com/django/django/compare/3.0.3...3.0.7)

Signed-off-by: dependabot[bot] <support@github.com>
2020-06-05 20:53:19 +00:00
Emil Stenström
60c51f4ae5 Update README.md 2020-02-08 13:39:59 +01:00
Emil Stenström
ed93b05db6 Update README to mention Django 3.0. 2020-02-08 10:31:09 +01:00
Emil Stenström
f3eb1d373e Upgrade tox environment to supprort django 3. 2020-02-08 10:30:10 +01:00
Emil Stenström
101f4a0041 Update dev requirements to latest version. 2020-02-08 10:29:57 +01:00