Skip to content

Commit ffef11b

Browse files
author
Francesco Calcavecchia
committed
add structure and todos
1 parent ade45d0 commit ffef11b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/inheritance_and_composition.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@ allows you to reuse code and structure from the parent template while adding or
77
overriding specific parts in the child template. This is useful for creating variations
88
of a template without duplicating code.
99

10+
<!-- TODO: add an example of inheritance -->
11+
1012
Template Composition, on the other hand, is a way to combine multiple templates,
1113
independent of each other, into a single new template. In this way you can join the
1214
functionalities of multiple templates, by adding some "glue code", and avoid repetition.
15+
16+
<!-- TODO: add an example of composition -->
17+
18+
<!-- TODO? (not sure if it relevant...) add an operational distinction between the two >
19+
20+
## Solutions
21+
22+
### Git submodules + jinja template inheritance
23+
24+
<!-- TODO: Add content-->
25+
26+
### Fork-like approach
27+
28+
<!-- TODO: Add content-->
29+
30+
### Leverage on copier task
31+
32+
<!-- TODO: Add content-->

0 commit comments

Comments
 (0)