306 Star 866 Fork 262

闲.大赋 / beetl2.0

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

Backlog
闲.大赋 owner  Opened this issue

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

29 xiandafu 1578913709 total 2 participants

Comments (1)

victor-wu 2018-04-17 10:16

对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>
    ```
}

%>

Sign in to comment

Assignees
Labels
Not set
Projects
Milestones
Branches
Planed to start
Not set
Planed to end
Not set
Top level
Priority
Java
1
https://gitee.com/xiandafu/beetl2.0.git
git@gitee.com:xiandafu/beetl2.0.git
xiandafu
beetl2.0
beetl2.0

Search