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

试图将php与jade集成

the following is my code.

li(class = "home", class = "<?php if($page == 'home'){echo '.on';} ?>")

i need a result as

<li class="home <?php if($page == 'home'){echo '.on';} ?> "></li>

but its turning out as

<li class="home #{&lt;?php if($page == 'home'){echo '.on';} ?&gt;}"></li>

any one has any suggestions

tried !{} but no luck

fyi: using atom as editor and xampp as server

近期文章

  • OPENCART SQL复杂请求语句
  • mysql LAST_INSERT_ID无法通过php工作
  • 在php中回显时Javascript无法正常运行
  • 基于特定标准对数组中的列求和
  • PHP会话值[重复]
  • 成功创建后的Laravel http响应
  • 如果第一个查询没有返回结果,则使用第二个查询
  • 当我在PHP中关闭弹出窗口时如何刷新父页面上的表?
  • 在laravel 5.6中创建层次关系
  • 可以通过插入实际的URL为我的images-directory-path定义一个常量吗?
  • Smarty Template Engine从数据库中获取单行并使用这些字段
  • Symfony - 从其他实体传递数据
  • Prestashop 1.6覆盖类在移动设备中不起作用
  • 如果变量是空字符串,则附加各种div元素
  • 错误mysql查询使用select子查询与count
  • Redis会话disable_locking为true
  • 从当前年度的每个月的表格中添加数字
  • 为Product Prestashop添加特定价格
  • 添加安全性到用于购物车_upload的php会话?
  • 使用PHPMailer发送电子邮件并旋转图像

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华