Git Product home page Git Product logo

Comments (7)

shepherdwind avatar shepherdwind commented on July 20, 2024

我看下,应该可以支持。

from velocity.js.

shepherdwind avatar shepherdwind commented on July 20, 2024

发布了0.7.0-beta1, 你看可以试下

$ npm install velocityjs@beta

另外,看下我的用例是否够用了。

from velocity.js.

lemoncolaz avatar lemoncolaz commented on July 20, 2024

恩,我看一下

from velocity.js.

lemoncolaz avatar lemoncolaz commented on July 20, 2024

好像不行啊,没看到parse/index.js里的rules里增加匹配#stop的正则表达式,也没看到处理stop的方法

from velocity.js.

shepherdwind avatar shepherdwind commented on July 20, 2024

不需要改parse,

      this.directive = {
        stop: function() {
         self._state.stop = true;
          return '';
        }
      };

还有这一样:https://github.com/shepherdwind/velocity.js/pull/49/files#diff-a509cb5a1016a02a707bb7b706e93c5cR199

测试用例可以pass,肯定那几个例子是ok的

from velocity.js.

shepherdwind avatar shepherdwind commented on July 20, 2024

真实改的就几行compile/compile.js的两个方法,init增加this.directive对象,在_render方法里面增加退出功能。

其他都是样式调整。

from velocity.js.

lemoncolaz avatar lemoncolaz commented on July 20, 2024

#stop() 现在可用,我不太懂velocity,看到rd写的代码里是写的#stop

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.