Am 17.04.2015 um 20:27 schrieb Charles:

Hi everyone,

I'm trying to use the diet templates, and in particular the extends function; however I think I'm doing something wrong. My index.dt file is set up like this:

 //- index.dt
 extends template
 block pageContent
h1	Hello, World!
p This is a diet template generated page

When I go to this page however I get the following HTML:

 <extends>template</extends>
 <h1>	Hello, World!</h1>
 <p>This is a diet template generated page</p>

template.dt does exist in the views folder, and does contain a block pageContent.

Did I do anything obviously wrong? I can't seem to find documentation for this, and the forum searches I found regarding this are essentially what I'm doing already.

The problem lies in the comment at the top. Not sure how Jade handles
this, if it works there, the Diet compiler should be fixed accordingly.
But currently comments are only allowed inside of blocks or normal
templates.