mirror of https://gitee.com/stylefeng/guns
beetl模板更新strUtil的引用
parent
ef60a6ec7c
commit
58f5568a60
|
@ -1,6 +1,7 @@
|
|||
package cn.stylefeng.guns.core.beetl;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.stylefeng.guns.core.beetl.tag.SysDictCheckBoxTag;
|
||||
import cn.stylefeng.guns.core.beetl.tag.SysDictRadioTag;
|
||||
import cn.stylefeng.guns.core.beetl.tag.SysDictSelectTag;
|
||||
|
@ -28,9 +29,12 @@ public class CustomBeetlGroupUtilConfiguration extends BeetlGroupUtilConfigurati
|
|||
// 获取当前用户的接口
|
||||
groupTemplate.registerFunctionPackage("loginUser", loginUserApi);
|
||||
|
||||
// 字符串处理工具类
|
||||
// 对象工具类
|
||||
groupTemplate.registerFunctionPackage("objectUtil", ObjectUtil.class);
|
||||
|
||||
// 字符串处理工具类
|
||||
groupTemplate.registerTag("strUtil", StrUtil.class);
|
||||
|
||||
// 获取基本信息的工具
|
||||
groupTemplate.registerFunctionPackage("constants", SystemConfigExpander.class);
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
<!--业务css-->
|
||||
@if(isNotEmpty(css)){
|
||||
@for(item in css){
|
||||
@if(strutil.startWith(item,"/")){
|
||||
@if(strUtil.startWith(item,"/")){
|
||||
@item = ctxPath + item;
|
||||
@}
|
||||
<link href="${item}?v=${constants.getReleaseVersion()}" rel="stylesheet" type="text/css" />
|
||||
|
@ -83,11 +83,11 @@ ${layoutContent}
|
|||
<!-- 业务js -->
|
||||
@if(isNotEmpty(js)){
|
||||
@for(item in js){
|
||||
@if(strutil.startWith(item,"/")){
|
||||
@if(strUtil.startWith(item,"/")){
|
||||
@item = ctxPath + item;
|
||||
@}
|
||||
<script src="${item}?v=${constants.getReleaseVersion()}"></script>
|
||||
@}
|
||||
@}
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
<!--业务css-->
|
||||
@if(isNotEmpty(css)){
|
||||
@for(item in css){
|
||||
@if(strutil.startWith(item,"/")){
|
||||
@if(strUtil.startWith(item,"/")){
|
||||
@item = ctxPath + item;
|
||||
@}
|
||||
<link href="${item}?v=${constants.getReleaseVersion()}" rel="stylesheet" type="text/css" />
|
||||
|
@ -85,7 +85,7 @@ ${layoutContent}
|
|||
<!-- 业务js -->
|
||||
@if(isNotEmpty(js)){
|
||||
@for(item in js){
|
||||
@if(strutil.startWith(item,"/")){
|
||||
@if(strUtil.startWith(item,"/")){
|
||||
@item = ctxPath + item;
|
||||
@}
|
||||
<script src="${item}?v=${constants.getReleaseVersion()}"></script>
|
||||
|
@ -109,4 +109,4 @@ ${layoutContent}
|
|||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
@/* 其他业务用的css */
|
||||
@if(isNotEmpty(css)){
|
||||
@for(item in css){
|
||||
@if(strutil.startWith(item,"/")){
|
||||
@if(strUtil.startWith(item,"/")){
|
||||
@item = ctxPath + item;
|
||||
@}
|
||||
<link href="${item}?v=${constants.getReleaseVersion()}" rel="stylesheet" type="text/css" />
|
||||
|
@ -70,7 +70,7 @@ ${layoutContent}
|
|||
|
||||
@if(isNotEmpty(js)){
|
||||
@for(item in js){
|
||||
@if(strutil.startWith(item,"/")){
|
||||
@if(strUtil.startWith(item,"/")){
|
||||
@item = ctxPath + item;
|
||||
@}
|
||||
<script src="${item}?v=${constants.getReleaseVersion()}"></script>
|
||||
|
|
Loading…
Reference in New Issue