node.js - Jade, mixins and extend -


given following

/layouts    main.jade /partials    some.jade index.jade 

code in main.jade

html     head         title layout page     body         block content 

code in some.jade

mixin list( title )     h1 title     ul         li foo         li bar         li baz 

code in index.jade

extend ./layouts/main extend ./partials/some block content     h1 hello world     +list( 'ciao mondo' ) 

i'd know if there's way similar run without problem

try replacing

extend ./layouts/main extend ./partials/some block content     h1 hello world     +list( 'ciao mondo' ) 

with

extend ./layouts/main include ./partials/some  //note line! block content     h1 hello world     +list( 'ciao mondo' ) 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

django - CSRF verification failed. Request aborted. CSRF cookie not set -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -