2

Even though I've got the blocks correctly addressed they aren't being brought into the layout page:

//- layout.jade
doctype html
html
  head
      title My Page
  body
    block content //- Main content goes here




//- index.jade
extends ./layout.jade

block title
  title Article Title

block content
  h1 My Article

I've since found the answer and think it should be documented to help others...

4

1 に答える 1

3

You will get that error if you have a comment //- on the same line as the block in your layout.jade.

于 2016-03-31T06:39:03.623 に答える