phug/compiler

用于PHP的Pug(前身为Jade)编译器,一个通过缩进来结构HTML模板的引擎

1.13.0 2023-09-02 10:13 UTC

This package is auto-updated.

Last update: 2024-09-19 16:08:23 UTC


README

Phug编译器是什么?

Phug编译器可以从Pug字符串或Pug文件生成PHP编译模板。

安装

通过Composer安装

composer require phug/compiler

用法

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

//$phtml is the PHP compiled template