增加helper方法,提供更加强大的功能 #2
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
允许用户在渲染模板之前调用tppl.helper方法注册helper,在模板中调用helper,更加方便的处理模板中得元素。
对项目做了以下修改:
1.增加
tppl.helper方法2.增加
[: variable | helperName:"format" :]语法3.修改了README文档
性能方面,通过你提供的测试CASE,发现并未有太大波动。具体的指标,你可以再仔细测下。