[extends base.html] [!title]关于我们 - 模板功能测试[~title] [!style] [~style] [!content] [!test]
✓ 您是已登录的VIP用户
{{else if user.isLoggedIn || user.isGuest}}✓ 您是已登录用户或访客
{{else}}✗ 您未登录
{{endif}}✓ 产品有库存且价格低于100元
{{else if product.stock === 0 || product.price >= 100}}⚠ 产品缺货或价格较高
{{endif}}✓ 团队规模大于2人且第一个成员懂JavaScript
{{endif}}价格: ¥{{product.price}}
库存: {{product.stock}}件
价格: ¥{{product.price}}
库存: {{product.stock}}件
价格: ¥{{product.price}}
✗ 错误: 应该显示产品列表
{{endfor}}✓ 正确: 空数组显示空状态消息
暂无数据,请稍后再试
{{endfor}}{{key}}: {{value}}
{{empty}}✓ 正确: 空对象显示空状态消息
暂无相关信息
{{endfor}}欢迎回来, {{user.name}}!
您的会员等级: {{user.membershipLevel}}
{{if user.membershipLevel === 'VIP'}}🎉 您是VIP会员,享受专属特权!
{{endif}}您尚未登录,请先登录
库存状态: 有货 ({{product.stock}}件)
{{else}}库存状态: 缺货
{{endif}}价格: ¥{{product.price}}
库存: {{product.stock}}件
{{if product.isNew}} 新品! {{endif}}职位: {{member.position}}
部门: {{member.department}}
{{if member.skills && member.skills.length > 0}}技能: {{member.skills.join(', ')}}
{{endif}}{{key}}: {{value}}
{{endfor}}状态: ✓ 成功
此页面通过 "[extends base.html]" 正确继承了基础模板
此页面已成功添加了自定义样式区块
下面将尝试测试包含文件:
[include test-include.html] [include footer-content.html]