Global Parameters

This is the documentation for 1.5.2 version, which is not the latest version. Consider upgrading to 3.2.6.

Rendering parameters

When using renderFile or render, parameters are (along Pug’s standard parameters):

Along all Pug’s parameters, you should put cache:true.

  • put yseop:true

  • use string:true to generate a plain string containing all templates, which is handy for debug

  • or to generate the Yseop TextFunction files, provide yseopPath as the folder where to write them

Compiling parameters

When using compileFileClient or compileFile:

Only if you plan to do browser rendering (do nothing if you render using node.js):

verbs: ['essen', 'fressen', 'gehen'],
words: ['Gurke'],
adjectives: ['alt', 'dick'],

Pug’s parameters for compilation include compileDebug, which should be put to false in production to reduce the size of the generated js function.