Jade Templates in ProcessWire
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
jade-php
LICENSE
README.md
TemplateEngineJade.module
jade-php-custom.php

README.md

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