Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 1.49 KB

README.md

File metadata and controls

25 lines (19 loc) · 1.49 KB

👻 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).