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:19:25 PDT 2017


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
   foooo
include footer



it's template is compilable, but it have wrong indent. Original 
page (that I am trying to split) have next indents:

doctype html
html
   head
     title DLANG.ru
   body
     #app
       .MainContainer
         .Header
           .HeaderMenu
             .HeaderBlock
               router-link(to='/') General
             .HeaderBlock
               router-link(to='/FAQ') FAQ
             .HeaderBlock
               router-link(to='/book') Book
           .HeaderLoginBlock Sign in
         .Middle
           foooo
         .footer (c) DLANG 2017

But I can't get right indents when I am splition it.



More information about the Digitalmars-d-learn mailing list