On 8/9/17 5:30 AM, Suliman wrote:
Big thanks! Now I understand. Now i redone dlang.ru in diet templates.
Great!
Am I right understand that include is needed only for small includes
without any nesting levels?
No, includes can be as big as you want, with as many nested levels as
you
On Tuesday, 8 August 2017 at 15:54:29 UTC, Steven Schveighoffer
wrote:
On 8/8/17 10:52 AM, Suliman wrote:
your examples generate me:
DLANG.ru
(c) DLANG 2017
That's the template without the
On 8/8/17 10:52 AM, Suliman wrote:
your examples generate me:
DLANG.ru
(c) DLANG 2017
That's the template without the block.
The only one modification that I did I changes pages names:
your examples generate me:
DLANG.ru
(c) DLANG 2017
The only one modification that I did I changes pages names:
extends home
Am I right understand that I can extend only one template?
On 8/8/17 9:19 AM, Suliman wrote:
Still can't get it work.
include header
..MainContainer
..Header
.HeaderMenu
.HeaderBlock
a(href="/") General
.HeaderBlock
a(href="/FAQ") FAQ
.HeaderBlock
a(href="/book") Book
.HeaderLoginBlock Sign in
..Middle
f
On Tuesday, 8 August 2017 at 13:22:58 UTC, Steven Schveighoffer
wrote:
On 8/8/17 9:10 AM, Suliman wrote:
Yes, thanks what: extends layout mean?
It means that your final file will be layout.dt, but with the
block statements replaced with the contents defined by the
specific view file.
On 8/8/17 9:10 AM, Suliman wrote:
Yes, thanks what: extends layout mean?
It means that your final file will be layout.dt, but with the block
statements replaced with the contents defined by the specific view file.
Think of it like an interface, where the "blocks" are function
prototypes,
Still can't get it work.
include header
.MainContainer
.Header
.HeaderMenu
.HeaderBlock
a(href="/") General
.HeaderBlock
a(href="/FAQ") FAQ
.HeaderBlock
a(href="/book") Book
.HeaderLoginBlock Sign in
.Middle
f
include footer
it's template is compilable,
Yes, thanks what: extends layout mean?
On 8/8/17 8:38 AM, Suliman wrote:
On Tuesday, 8 August 2017 at 11:59:38 UTC, Suliman wrote:
On Tuesday, 8 August 2017 at 11:55:09 UTC, Suliman wrote:
For example I am making simple site with header and footer. header
and footer will be same for all pages. I do not want to do copy-paste
it in
On Tuesday, 8 August 2017 at 11:59:38 UTC, Suliman wrote:
On Tuesday, 8 August 2017 at 11:55:09 UTC, Suliman wrote:
For example I am making simple site with header and footer.
header and footer will be same for all pages. I do not want to
do copy-paste it in every page. I want write it's once
On Tuesday, 8 August 2017 at 11:55:09 UTC, Suliman wrote:
For example I am making simple site with header and footer.
header and footer will be same for all pages. I do not want to
do copy-paste it in every page. I want write it's once and than
simpy import in every page. Is it's possible to
13 matches
Mail list logo