Download the PHP package sourceboat/wp-pug without Composer
On this page you can find all versions of the php package sourceboat/wp-pug. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download sourceboat/wp-pug
More information about sourceboat/wp-pug
Files in sourceboat/wp-pug
Download sourceboat/wp-pug
More information about sourceboat/wp-pug
Files in sourceboat/wp-pug
Vendor sourceboat
Package wp-pug
Short Description Use Pug template engine in WordPress.
License MIT
Package wp-pug
Short Description Use Pug template engine in WordPress.
License MIT
Please rate this library. Is it a good library?
Informations about the package wp-pug
:warning: Deprecated: This project is not actively maintained anymore. Use it at your own risk.
WP Pug
Use Pug template engine in WordPress. It uses pug-php under the hood.
Installation
To use this plugin you need to setup your WordPress installation via a Composer setup like Bedrock. Then you can install it via:
Usage
Template Directory
The Plugin expects your templates to be under a views
folder in your active theme.
Helper
The plugin exposes the following helper functions:
render_template($name, $data = [])
- renders a template and prints the output.get_template_content($name, $data = [])
- renders a template and returns the output as string.
Arguments:
$name
- the template name relative to the template directory without file extension.$data
(optional) - array with local variables wich get passed to the template.
WP-CLI
The plugin supports WP-CLI. The following commands are available:
All versions of wp-pug with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6.0
composer/installers Version ^1.3
sourceboat/wp-autoloader Version ^0.1.0
pug-php/pug Version ^2.6
composer/installers Version ^1.3
sourceboat/wp-autoloader Version ^0.1.0
pug-php/pug Version ^2.6
The package sourceboat/wp-pug contains the following files
Loading the files please wait ....