1介绍
支持构建 html 内嵌 PHP 的代码。如:
<?php
PHP code
?>
=>
<?php
PHP code
?>
2配置
2.1regexps
- 类型:
array<regexp> - 默认:
[ /<\?php[\s\S]*?\?>/gi, /<\?=[\s\S]*?\?>/g ] - 说明:指定匹配条件
3使用
// 在 coolie.config.js 中添加
coolie.use(require('coolie-mid-php'), configs);