JAR PUG Template 

Version

1.0

Language

en

Description

This extension provides a new content object to render pug templates.

Authors

Julian Lichte, Maurice Möllmer, Murat Ascieli

Email

info@invokable.gmbh

License

Creative Commons BY 4.0 .

TYPO3

The content of this document is related to TYPO3 CMS, a GNU/GPL CMS/Framework available from typo3.org .

Extension Manual

This documentation is for the TYPO3 extension JAR Pugtemplate. If you find an error or something is missing, please: Report a Problem


Author 

This extension has been created by JAR Media, a brand of invokable.

JAR Media - be creative. and relax invokable GmbH

General configuration 

Download the extension.

Variables 

templatePath

templatePath
Required

true

type

string

Path to the pug template on the filesystem.

variables

variables
Required

false

type

string or cObject

Variables to pass on to the pug template renderer.

dataProcessing

dataProcessing
Required

false

type

array of class references by full namespace

see

DataProcessing documentation

debug

debug
Required

false

type

boolean

Showes a debug output in the frontend with all variables for this template.
It can also be globally activated for every pug template by adding the parameter pugdump=1 to the uri.

example

Example 

Simple example of rendering a pug template. Templatepath is mandatory.

Example:

page.999 = PUGTEMPLATE 
page.999 {
	variables {
		var1 = TEXT
		var1.value = 123456789
		var2 = 123
	}
	dataProcessing {
	}
	templatePath = fileadmin/test.pug
}
Copied!