Is it's possible to make modular pug template in vibed?
Suliman via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Tue Aug 8 06:33:17 PDT 2017
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.
>
> Think of it like an interface, where the "blocks" are function
> prototypes, and your specific view file is a class that
> implements the interface, where you implement the functions by
> defining the blocks.
>
> -Steve
Could you show how to improve my code above? I can't get it
work...
More information about the Digitalmars-d-learn
mailing list