About Template Engine Jade

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).
Category 3Other Modules
Modules that have a unique purpose not covered by existing categories.
Release StateDelete
State reserved for modules pending deletion at author's request.*
Authordreerr
Module Version1.0.4
Class NameTemplateEngineJade
Compatibility2.3, 2.4, 2.5, 2.6, 2.7, 3.0
Date AddedNovember 6, 2015
Last UpdatedMarch 1, 2017
Recommended ByNew recommendations may take up to 1 day to appear.

Instructions

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

README

👻 Depreciated 👻

Please use TemplateEnginePug instead!

 

 

TemplateEngineJade

ProcessWire module adding Jade templates to the TemplateEngineFactory. It uses the Jade.php fork from https://github.com/kylekatarnls/jade-php, which seems to be the most recent and complete.

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 Jade as engine in the TemplateEngineFactory module's settings.

Configuration

  • Path to templates Path to folder where you want to store your Jade template files.
  • Template files suffix The suffix of the template files, default is jade.
  • Import ProcessWire API variables in Jade template If checked, any API variable is accessible inside the Jade templates, for example page refers to the current page.
  • Disable Escaping If checked, variables used in templates won’t be escaped through htmlspecialchars.
  • 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).