bluebones.net

Icon

Adventures in Computer Programming

Partials in Jade

I couldn’t find good docs on partials in the Jade template engine which is used by default by the Express framework for node.js. Here’s an example:

movies.jade in the views directory:

div(id='movies')
  - each movie in movies
    !=partial('movie', movie)

where movie.jade is also in the views directory.

Category: Uncategorized

Tagged:

Leave a Reply