Skip to content

Files

Latest commit

5b0af69 · Feb 3, 2017

History

History
28 lines (18 loc) · 396 Bytes

README.md

File metadata and controls

28 lines (18 loc) · 396 Bytes

Phug Compiler

What is Phug Compiler?

The Phug compiler get pug string or a pug file then return a PHP compiled template.

Installation

Install via Composer

composer require phug/compiler

Usage

$compiler = new Phug\Compiler($options);
$phtml = $compiler->compile($pugInput);

//$phtml is the PHP compiled template