self : boolean Use a self namespace to hold the locals. filters : object Hash table of custom filters. Too often, it creates subtle bugs in your templates because of the way it alters the interpretation and rendering of whitespace, and so this feature is going to be removed. We strongly recommend against using this option. If a string is specified, that will be used as indentation instead (e.g. pretty : boolean | string Adds whitespace to the resulting HTML to make it easier for a human to read using ' ' as indentation. See doctype documentation for more information. It is sometimes useful to get self-closing tags and remove mirroring of boolean attributes. doctype : string If the doctype is not specified as part of the template, you can specify it here. basedir : string The root directory of all absolute inclusion. Used in exceptions, and required for relative include\s and extend\s. OptionsĪll API methods accept the following set of options: filename : string The name of the file being compiled. This page details how to render Pug using the JavaScript API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |