developerdino/smarty-lint

smarty 模板代码的检查器

v3.0.1 2020-06-16 00:10 UTC

This package is auto-updated.

Last update: 2024-09-16 09:29:47 UTC


README

smarty-lint 是为了满足实际需求而开发的,并考虑到使用简单性。我们许多人都有过这样的经历,将未经正确测试的模板文件提交到版本控制系统中,结果因为缺少 $ 符号或忘记关闭 {foreach} 语句而导致页面出现问题。

从这里,您可以轻松地将 smarty-lint 集成到构建系统中,这样在将任何内容提交到源代码树之前,您可以运行模板检查与常规代码检查并行执行。

如何安装

通过 composer 安装

composer require developerdino/smarty-lint --dev