Re: Vibe.d diet template reuse

2016-11-14 Thread Jot via Digitalmars-d-learn
On Monday, 14 November 2016 at 08:28:24 UTC, Sönke Ludwig wrote: Am 03.11.2016 um 06:31 schrieb Jot: [...] The example above should basically work - the included template is inserted into the outer context and can access any functions or variables declared there. Alternatively, you can also

Re: Vibe.d diet template reuse

2016-11-14 Thread Sönke Ludwig via Digitalmars-d-learn
Am 03.11.2016 um 06:31 schrieb Jot: I would like to create some generic diet templates for different html functionality. Some code in the template will need to be setup/changed for it to function properly. How can I write code that allows for one to express generic statements in the template bu

Vibe.d diet template reuse

2016-11-02 Thread Jot via Digitalmars-d-learn
I would like to create some generic diet templates for different html functionality. Some code in the template will need to be setup/changed for it to function properly. How can I write code that allows for one to express generic statements in the template but access/modify them in another