Is it's possible to make modular pug template in vibed?
Steven Schveighoffer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Aug 8 08:54:29 PDT 2017
On 8/8/17 10:52 AM, Suliman wrote:
> your examples generate me:
>
>
> <!DOCTYPE html>
> <html>
> <head>
> <title>DLANG.ru</title>
> </head>
> <body>
> <div id="app">
> <div class="MainContainer">
> <div class="footer">(c) DLANG 2017</div>
> </div>
> </div>
> </body>
> </html>
That's the template without the block.
> The only one modification that I did I changes pages names:
> extends home
>
> because my main page is home.dt
You have it backwards. You don't render the layout template, but the
template that extends the layout.
-Steve
More information about the Digitalmars-d-learn
mailing list