Вопрос

I don't see any documentation for the extends/block syntax at the Jade language reference. Is that documentation just out of date? Is there any better documentation?

Это было полезно?

Решение

I think Jade documentation is rather up-to-date, however, it misses some parts, as you have pointed that out.

In order to extend your template by including other Jade files you can use includes. In order to create reusable blocks of Jade you can use Mixins.

I would also recommend going through all the examples supplied with Jade. For extends mechanism you can focus on extend.jade, extend-layout.jade and extend.js.

It would be great to have decent documentation, but on the other hand, Jade template language seems to be simple enough to be mastered, experimenting for a few days with the supplied examples.

I hope that will help.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top