About Template Engine Pug

Pug/Jade templates for the TemplateEngineFactory

Category 1Development Tools
Modules that have more to do with assisting development of a site rather than managing its content.
Category 2Markup 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).
Release StateStable
Should be safe for use in production environments. *
Authordreerr
Module Version1.0.6
Class NameTemplateEnginePug
Compatibility2.7, 3.0
Date AddedMarch 1, 2017
Last UpdatedMarch 7, 2017
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

This module's files should be placed in /site/modules/TemplateEnginePug/
How to install or uninstall modules

README

TemplateEnginePug

ProcessWire module adding Pug templates (formerly known as Jade) to the TemplateEngineFactory. It uses Pug.php from https://github.com/pug-php/pug .

Installation

Install the module just like any other ProcessWire module. Check out the following guide: http://modules.processwire.com/install-uninstall/

This module requires TemplateEngineFactory: https://github.com/wanze/TemplateEngineFactory

After installing, don't forget to enable Pug as engine in the TemplateEngineFactory module's settings.

Configuration

  • Path to templates Path to folder where you want to store your Pug template files.
  • Import ProcessWire API variables in Pug template If checked, any API variable is accessible inside the Pug templates, for example page refers to the current page.
  • Cache If checked, templates are cached and will be recompiled only when the source code changes.
  • Output indented HTML If checked, the output is rendered as indented HTML.
  • Stream Wrapper Protocol Set the name of the protocol for registering the class (you might want to edit this if Suhosin is enabled).

Comments

No comments yet. Be the first to post!

Post a Comment

Your e-mail is kept confidential and not included with your comment. Website is optional.