PHP Jade 模板解析器 [英] PHP Jade Template parser

查看:35
本文介绍了PHP Jade 模板解析器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找 NodeJS 中使用的 Jade 模板引擎的 PHP 实现.我最近尝试了 Jade.php,但它不完整,因为它不支持继承或部分.我还看到了 PHPNativeJadeRenderer,但它依赖于 shell_exec 来解析模板文件通过 npm jade 模块,我对使用该方法并不完全满意.

I'm looking for a PHP implementation of the Jade template engine used in NodeJS. I've recently tried Jade.php, but it is incomplete as it does not support inheritance or partials. I've also seen PHPNativeJadeRenderer, but it relies on a shell_exec to parse the template file through the npm jade module and I'm not entirely comfortable with using that method.

有人知道Jade模板引擎的完整PHP OOP端口吗?

Does anybody know of a complete PHP OOP port of the Jade Template Engine?

推荐答案

更新 (03.12.2015):

Tale Jade 似乎是 Jade 与 PHP 最完整、最活跃的集成.

It seems Tale Jade seems to be the most complete and most active integration of Jade into PHP.

https://github.com/Talesoft/tale-jade

作为更新:

看来,这个分支:https://github.com/SC7639/jade.php 拥有最多的功能和几乎最新的活动.(2016 年 5 月)

it seems, this fork: https://github.com/SC7639/jade.php has the most features and nearly the most recent activity. (May 2016)

GitHub 上 jade.php fork/commit 活动 的图表.

A chart of jade.php fork/commit activity on GitHub.

这篇关于PHP Jade 模板解析器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆