fis-scaffold / jello-demo Goto Github PK
View Code? Open in Web Editor NEWJello demo for fis3
Jello demo for fis3
fis.match('*.html', {
parser: fis.plugin('vm')
});
用了fis3-parser-vm
但报错了
[ERROR] parser.vm: Call undefined macro. [E:/mygithub/jello-fis-practice/page/page.html]
然后我换成fis3-parser-velocity,数据绑定不了,请大神指示
vm文件中使用#include("xxx.vm")指令,使用相对路径不能定位到对应的资源。
放置在同一目录下,也不能定位到路径。
请问是有什么特殊的配置?还是只能使用扩展标签widget?
问题描述如下(属于特例情况,可以在java后台中去规避,但是还是有不完美的地方):
在java端:
Map<Integer, Object> xxxMap = new HashMap<Integer,Object>();
xxxMap.put(1,new Object());
velocity的取值方式:
$advertMap[0]
在jello端:
使用json只能使用字符串模拟,当然使用yaml等其他的方式描述本质上也是一样,数据类型不统一。
{
"xxxMap": {
"0": {
"key": "value"
}
}
}
对应velocity的取值方式:
$advertMap["0"]
不知可否有好的方法从jello端去解决这种情况?
系统环境:
OS X 10.10.5
java version "1.7.0_67"
Java(TM) SE Runtime Environment (build 1.7.0_67-b01)
Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)
npm version:
2.10.1
搭建jello-demo步骤如下:
sudo npm install -g [email protected]
sudo npm install -g fis3-jello
sudo fis3 init jello-demo
fis3 release
报错如下:
[INFO] Currently running fis3 (/usr/local/lib/node_modules/fis3/)
δ 3ms
Ω
[ERROR] unable to load plugin [jello-hook-amd] or [fis3-hook-amd] or [fis-hook-amd]
fis3 release之后只显示如上的目录结构,不显示首页。检查了一下server.conf文件,发现在WEB-INF下,变成了server-.conf
路径如上:http://127.0.0.1:8080/WEB-INF/views/bapp/page/mine/,可以看到这个文件,但是通过rewrite的规则:rewrite ^/mine/index$ page/mine/index.vm,然后http://127.0.0.1:8080/mine/index
报404错误。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.