template:twigstarter
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
template:twigstarter [2021-07-01 14:56] – [Variables and Functions] andi | template:twigstarter [2021-11-22 11:10] – [TwigStarter Child] andi | ||
---|---|---|---|
Line 11: | Line 11: | ||
similar | similar | ||
screenshot_img: | screenshot_img: | ||
- | tags : starter, !experimental, twig, sidebar | + | tags : starter, twig, sidebar |
downloadurl | downloadurl | ||
Line 22: | Line 22: | ||
The template is meant as an alternative to the [[template: | The template is meant as an alternative to the [[template: | ||
- | |||
- | Note: this is currently experimental as there are no public templates that have been built on top of this, yet. My personal site's template however uses the child approach described below. | ||
===== Getting started ====== | ===== Getting started ====== | ||
Line 30: | Line 28: | ||
DokuWiki expects three files in a template directory: '' | DokuWiki expects three files in a template directory: '' | ||
+ | |||
+ | |||
+ | > There' | ||
Depending on what way you want to use, there are different things to do: | Depending on what way you want to use, there are different things to do: | ||
Line 39: | Line 40: | ||
==== TwigStarter Child ==== | ==== TwigStarter Child ==== | ||
- | If you want to depend on the original twigstarter template, copy over all files except for | + | If you want to depend on the original twigstarter template, copy over the following |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | * '' |
- | * '' | + | |
Next create your own '' | Next create your own '' | ||
Line 128: | Line 128: | ||
Twig templates are compiled and cached. During development you don't want that. To disable caching, simply enable the [[config: | Twig templates are compiled and cached. During development you don't want that. To disable caching, simply enable the [[config: | ||
+ | ===== Templates based on TwigStarter ===== | ||
+ | |||
+ | Most templates that have been made with TwigStarter are not publically available as they have been built for clients at my dayjob. However below is (currently short) list of publically available template based on TwigStarter: | ||
+ | * [[template: | ||
template/twigstarter.txt · Last modified: 2023-01-10 18:49 by andi