Git Product home page Git Product logo

Comments (9)

shepherdwind avatar shepherdwind commented on July 20, 2024 1

0.8.4 修复了 #foreach 的问题

from velocity.js.

shepherdwind avatar shepherdwind commented on July 20, 2024 1

那种没有括号的,估计比较难实现了,而且容易和 css 选择器冲突啥的。

from velocity.js.

shepherdwind avatar shepherdwind commented on July 20, 2024

不是很明白什么意思?可以解释更清楚一些吗?

from velocity.js.

xingzhewj avatar xingzhewj commented on July 20, 2024

是这样子的。例如a.vm中有#macro (test)一行,在b.vm中#test调用的时候没有调用成功而是原样输出了#test, 如果我在b.vm中#test()这样去调用就没有问题了,就是想可以也支持#test这种的调用吗?

from velocity.js.

shepherdwind avatar shepherdwind commented on July 20, 2024

http://velocity.apache.org/engine/devel/user-guide.html#velocimacros velocity 没有你说的这种 #test 直接执行的吧。

from velocity.js.

xingzhewj avatar xingzhewj commented on July 20, 2024

是这样的。tomcat中的velocity配置确实也识别那样的写法,但由于vm不好轻易改动,所以看是否也能支持这样的写法!

from velocity.js.

shepherdwind avatar shepherdwind commented on July 20, 2024

我看下怎么处理下

from velocity.js.

xingzhewj avatar xingzhewj commented on July 20, 2024

ERROR Parse error on line 67: #foreach(${itemData} in ${defaultData}) Expecting 'ID', got 'MAP_BEGIN'
查到正常写法是#foreach($itemData in $defaultData);但是可否支持上面的写法呢?

from velocity.js.

xingzhewj avatar xingzhewj commented on July 20, 2024

恩恩!我修改下vm,按照标准得来!非常给力!!点赞!!!

from velocity.js.

Related Issues (20)

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.