Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

自定义block语法支持 #44

Closed
shepherdwind opened this issue May 13, 2015 · 0 comments
Closed

自定义block语法支持 #44

shepherdwind opened this issue May 13, 2015 · 0 comments
Milestone

Comments

@shepherdwind
Copy link
Owner

比如

#cms(1)
  <div class="abs-right">
    #H(1,"第一个链接")
  </div>
#end

解析过程

 var ast = Velocity.parse(vm, { cms: true });

获得ast

{ type: 'cms',
  args: [ { type: 'integer', value: '1' } ],
  pos: { first_line: 1, last_line: 1, first_column: 0, last_column: 7 } }
@shepherdwind shepherdwind added this to the 0.6 milestone May 13, 2015
shepherdwind added a commit that referenced this issue May 13, 2015
增加jscsrc和jshintrc配置,修改js格式
shepherdwind added a commit that referenced this issue May 14, 2015
feat: support self define blocks, fixes #43, #44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant