About Template Engine Pug
Pug/Jade templates for the TemplateEngineFactory
|Category 1||Development Tools|
Modules that have more to do with assisting development of a site rather than managing its content.
|Category 2||Markup Generation|
Markup modules that are called upon to generate or parse markup (like HTML). Markup modules are most often used on the front-end of a site (rather than admin).
Should be safe for use in production environments. *
|Date Added||March 1, 2017|
|Last Updated||March 5, 2019|
This module's files should be placed in /site/modules/TemplateEnginePug/
How to install or uninstall modules
1.xversion of this module is available on the 1.x branch.Use this version if you still use TemplateEngineFactory
Execute the following command in the root directory of your ProcessWire installation:
composer require dreerr/template-engine-pug:^2.0
This will install the TemplateEnginePug and TemplateEngineFactory modules in one step. Afterwards, don't forgetto enable Pug as engine in the TemplateEngineFactory module's configuration.
The module offers the following configuration:
Template files suffixThe suffix of the Pug template files, defaults to
Provide ProcessWire API variables in templatesAPI variables (
$config...)are accessible in Pug.
Output indented HTMLIf checked, the output is rendered as indented HTML.
Debug OutputWhen an error occurs at render time, you will get a complete stack trace including line and offset in the original pug source file.
Enable ProfilerWhen set to true, it will output on render a timeline you can inspect in your browser to see wich token/node take longer to lex/parse/compile/render.
No comments yet. Be the first to post!
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Core Modules
- Development Tools
- Field Types
- Input Fields
- Language Modules
- Language Packs
- Markup Generation
- Premium Modules
- Process Modules
- Proof of Concept
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.