Giter Site home page Giter Site logo

jello-demo's Issues

velocity模板可以是.html后缀的吗

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,数据绑定不了,请大神指示

java中velocity的Map语法与jello中velocity的Map语法不统一情况

问题描述如下(属于特例情况,可以在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端去解决这种情况?

[ERROR] unable to load plugin [jello-hook-amd] or [fis3-hook-amd] or [fis-hook-amd]

系统环境:
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]

server.conf文件不生效

  • /
    static
    test
    WEB-INF

fis3 release之后只显示如上的目录结构,不显示首页。检查了一下server.conf文件,发现在WEB-INF下,变成了server-.conf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.