beetl1.2's People
Forkers
383366063 hly3825 iveryang xiandafu suxinde2009 mikeweib oleilei guoyu07 fuzw123 restmad skyformat99beetl1.2's Issues
beetl 支持非长精度计算
默认情况下,beetl支持长精度,会有一定性能损耗,希望支持普通精度计算
native 连续调用
var a = @user.getWife()[0].getName();
三元表达式支持
通过函数方式来支持三元表达式
如
${qmark(a>b,"a大","a不大")}
换行输出问题
<% for (item in compileLibItemList) {%>
<%print(@item.toLibDefineString());%>
<%}%>
生成的文件是:
aaa bbb ccc
我期望的是
aaa
bbb
ccc
循环增强
@ for(user in userList){
${userLP.even} ${userLP.odd} ${userLP.first} ${userLP.last} ${userLP.size}
@}
jfinal 编译模式下出错
C:\Users\Administrator.bee\WebRoot\src\blog\blog_html.java:18: 找不到符号
符号: 类 JFinalSession
位置: 类 blog.blog_html
final JFinalSession<String,String> session;
jfinal 版本为1.4
FunctionWrapper对于重名方法会失败
要支持同名方法
三元表达式支持
通过函数方式来支持三元表达式
如
${qmark(a>b,"a大","a不大")}
beetl 支持jsp tag
如题
Enumeration 支持
循环中支持 Enumeration
减少模板对perm区的占用
减少模板编译成class后对perm区占用,包括:
1 模板变更后无效的class应该能移除perm
2 模板静态变量不占用perm区
js 三元表达式支持
a==1?a:c
function调用后不能获取对象属性值
${split("hello,i am joel",",")[0]}
会报语法错,应该允许对function后的返回值进行操作
1.22版本预览版有问题
数组,map的安全输出
${aa[0].kk!}
目前不支aa为null的情况
int数组 遍历出错
template.set("array",new int[]{1,2,3})
模版里:
for(i in array) 将报错,只能
template.set("array",new Integer[]{1,2,3})
支持go语言的switch特性
switch (value) {
case 'a','b':{
result = 1
},
default:{
result = 0
}
}
layout 文件修改好,第一次刷新无效
layout 文件修改好,第一次刷新无效,必须俩次刷新
宏支持
虽然可以通过macor来获得同样效果,但不如宏效果好,希望支持:
<#select list=${users} style="" class="" value=${user} >
</#select>
虚拟属性不存在,应该报出正确的错误
虚拟属性不存在,应该报出正确的错误,而不是空指针
对于未知的map或者list,也能编译
for(x in xxx) ,因为如果判断不了xxx类型,则解释执行,遇到这种情况,可以wrapper一下,然后再warpper里解释执行,获取元素
异步编译
异步编译以避免系统启动的过高访问被阻塞
为beetl增加默认的转化函数
比如:
${date,dateformat='yyyy-MM-ddd''},可以变成:
${date,'yyyy-MM-ddd'}
增加判断模板是否存在
输入是key
静态内容太长,导致java编译不了
beetl合并输出,会将静态内容合并成一个变量,有可能导致编译不了
增加ResourceLoader用于装载,刷新模板
增加ResourceLoader用于装载,刷新模板
允许配置文件配置回车为定界结束符号
=null, =(空) 都可以表示回车为定界结束符号
spring 集成支持 多个grouuptempalte配置
如题
debug 模式下,无法编译的文件立即报错
如题,这样有助于调试
循环状态增强
在for(x in xxx){
print(x_loop.index,x_loop.isFirstIndex)......
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.