Emil Stenström
a5bd0cf2e3
Rework slot management to avoid nodelist copying ( fixes #64 )
...
Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2021-05-30 18:46:11 +02:00
rbeard0330
070b754d24
Improve slot handling to allow nested components, conditional slots, and slot.super ( Fixes #33 , #34 , #37 )
...
Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2021-05-26 00:59:46 +02:00
Emil Stenström
57a5aa0f4b
Only render dependencies that are used of a specific page ( #52 )
...
Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2021-03-24 22:47:48 +01:00
Emil Stenström
475bc8720f
Add tests for components with dynamic template.
2021-02-20 10:04:10 +01:00
rbeard0330
93b8a7404a
Rework of context handling ( #18 )
...
Co-authored-by: rbeard0330 <@dul2k3BKW6m>
2020-12-28 10:40:35 +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
d1405dda13
Add slots to components that can be filled when using component.
2020-06-06 09:11:27 +02:00
Emil Stenström
9d48a8e93f
Add test for passing two variables to template tag.
2019-11-24 11:17:17 +01:00
Emil Stenström
701e1e3ac2
Add test for more complex template that uses built-in django filter.
2019-11-24 11:10:14 +01:00
Emil Stenström
6492081b64
Add render() and render_dependencies() to Compoent.
2015-06-12 22:15:09 +02:00