我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在HAML预处理器中对“<= $ example?>”等字符进行例外处理?

is it possible to make the HAML pre-proccessor ignore for I.E. <?= $test ?> and just print it out as it is? To then turn the HTML file into a PHP file to be used as a template.

If using code in page with .html extension then it will directly shown the PHP code as it is.

But for .php file, htmlentities can be used. For example:

echo htmlentities('<?= $test ?>');

近期文章

  • ZF3 - 从帮助者那里获取cookie
  • 致命错误:未捕获 - > Smarty:无法加载模板'文件:test.tpl'
  • Laravel中的递归排序
  • 默认情况下获取为OBJ时的stdClass
  • PHP数据库连接错误,无法获取数据库类实例
  • 调用未定义的函数App \ select()
  • 未创建Symfony 4.1缓存
  • PHP money格式在不同的服务器上返回带/不带货币前缀的字符串
  • PHP XSL:键'匹配'模式编译失败
  • Yii2 LOAD DATA LOCAL INFILE
  • 如何用一些修改显示使用php的记录[重复]
  • 如何使用Laravel控制器多门禁访问方法?
  • 无法更新数据并存储在数据库中
  • 避免表格中的重复响应 - laravel 5.6
  • 根据PhpStorm,为什么这个PHP if语句不是最优的
  • 试图将php与jade集成
  • OPENCART SQL复杂请求语句
  • mysql LAST_INSERT_ID无法通过php工作
  • 在php中回显时Javascript无法正常运行
  • 基于特定标准对数组中的列求和

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华