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

{{ include('foo.xtpl', {foo: 'bar'}) }} 支持 #57

Closed
dead-horse opened this issue Mar 25, 2015 · 5 comments
Closed

{{ include('foo.xtpl', {foo: 'bar'}) }} 支持 #57

dead-horse opened this issue Mar 25, 2015 · 5 comments
Assignees
Milestone

Comments

@dead-horse
Copy link
Member

现在支持 {{include('foo.xtpl', foo='bar')}} 的语法,但是在实际使用中,没有 include ('foo.xtpl', {foo: 'bar'}) 好用。

@dead-horse
Copy link
Member Author

@yiminghe 如何?

@dead-horse
Copy link
Member Author

可能有一些应用场景是:

{{set root = {moda: {}, modb: {}}) }}

{{ include('mod/a.xtpl', moda) }}
{{ include('mod/b.xtpl', modb) }}

这样动态的参数好像不是特别好做

@yiminghe
Copy link
Member

嗯,可以

@yiminghe yiminghe self-assigned this Mar 26, 2015
@yiminghe yiminghe added this to the 4.2.0 milestone Mar 26, 2015
@yiminghe
Copy link
Member

@dead-horse review 下

@dead-horse
Copy link
Member Author

赞!

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

2 participants