[Jade] partial is deprecated

Tadashi Shigeoka ·  Sat, October 26, 2013

In the latest version of Jade, partial is deprecated.

Code using partial won’t render

extends layout

block content
  h1 Invoices:
  != partial("invoice")
Jade newest version doesn't support partials. You might be following outdated tutorials. Please read up on jade documentation here

Since you can’t use partial, let’s use mixin instead.


Reference Information

node.js - Partial Not Defined in Jade - Stack Overflow

That’s all from the Gemba.