dreerr/template-engine-pug
Composer 安装命令:
composer require dreerr/template-engine-pug
包简介
ProcessWire module adding Pug to the TemplateEngineFactory
README 文档
README
A ProcessWire module adding Pug to the TemplateEngineFactory.
Requirements
- ProcessWire
3.0or newer - TemplateEngineFactory
2.0or newer - PHP
7.0or newer - Composer
The
1.xversion of this module is available on the 1.x branch. Use this version if you still use TemplateEngineFactory1.x.
Installation
Execute the following command in the root directory of your ProcessWire installation:
composer require dreerr/template-engine-pug:^2.0
This will install the TemplateEnginePug and TemplateEngineFactory modules in one step. Afterwards, don't forget to enable Pug as engine in the TemplateEngineFactory module's configuration.
Configuration
The module offers the following configuration:
Template files suffixThe suffix of the Pug template files, defaults topug.Provide ProcessWire API variables in templatesAPI variables ($pages,$input,$config...) are accessible in Pug.Output indented HTMLIf checked, the output is rendered as indented HTML.Debug OutputWhen an error occurs at render time, you will get a complete stack trace including line and offset in the original pug source file.Enable ProfilerWhen set to true, it will output on render a timeline you can inspect in your browser to see wich token/node take longer to lex/parse/compile/render.
统计信息
- 总下载量: 60
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-18