305 Star 889 Fork 266

闲.大赋(李家智) / beetl2.0

 / 详情

提问请到 https://gitee.com/xiandafu/beetl

待办的
拥有者
创建于  
2018-02-28 21:16

这里是2.0版本,请访问3.0版本 https://gitee.com/xiandafu/beetl

评论 (1)

闲.大赋(李家智) 创建了任务
闲.大赋(李家智) 更新了置顶等级:高

对Beetl语法有点建议

<%%> 这种语法在JSP中很多使用 很麻烦 眼花缭乱

//在模板里

总共 ${list.~size}
<%
for(user in list){
%>
hello,${user.name};
<% } %>

建议调整方式, 减少<%%> html块的的加入让代码更加整洁提升可读性

<%

for(user in list){
    htmlBlock{
        <h1>hello, ${user.name}</h1>
    }
    ```
        <h1>hello, ${user.name}</h1>
    ```
}

%>
闲.大赋(李家智) 修改了标题
闲.大赋(李家智) 修改了描述

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
423093 unuobi 1687156079 29 xiandafu 1678706040
Java
1
https://gitee.com/xiandafu/beetl2.0.git
git@gitee.com:xiandafu/beetl2.0.git
xiandafu
beetl2.0
beetl2.0

搜索帮助