1

Little Question to Jade and Express here. For me it is not possible to use Blocks in Blocks ...

So let's assume my layout.jade looks like this:

!!!
html
  head
    scripts meta tags and other stuff here...
  body
    block content

And a page for example home.jade looks like this:

extends layout

block content
  html stuff here
  block table

And table.jade looks like this:

extends home

block table
  html table here

Is this even possible ? I mean, I want to achieve that only the table is rendered in a response, like

res.render('table', data);

and the view only updates the Table.

Any suggestions ? Thanks ..

4

0 回答 0