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

不是bug,算一点小建议吧 #1

Closed
ziyouchutuwenwu opened this issue Jan 18, 2017 · 1 comment
Closed

不是bug,算一点小建议吧 #1

ziyouchutuwenwu opened this issue Jan 18, 2017 · 1 comment

Comments

@ziyouchutuwenwu
Copy link

最好能有为主流web框架做一些支持的插件,有助于推广

另外,个人觉得模板语法上用类似django的include,extend之类读起来更加好理解一些,不过这样可能就成了pongoPlus了- -||

看extend和include用符号表示,感觉记忆起来略不便,不过关系也不大,好用的话,应该习惯就好

@shiyanhui
Copy link
Owner

shiyanhui commented Jan 18, 2017

嗯,首先非常感谢插件这个建议,接下来就着手这方面的工作!其实每种都很好记,跟语义都是联系起来的,比如:

: 对应定义。一般我们对某个事物的含义进一步定义的时候用:
! 对应import
+ 表示加进来的意思,跟include对应
~ 对应继承。波浪号有点像传送带,表示父模板传给子模板,这里语义也比较像

benchmark我用https://github.com/SlinSo/goTemplateBenchmark 这个做了,对比了一下,性能是最高的,准备好好推广一下,力争做最好的模板引擎!

最后再次感谢!

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