[英]How can I create package-scoped templates?
I'm making a large Meteor app and all my templates are now named "veryLongNameOfMyTemplate"
. 我正在制作一个大型Meteor应用程序,所有模板现在都命名为
"veryLongNameOfMyTemplate"
。
I want to avoid having such long names. 我想避免使用这么长的名字。
I tried to create my templates in packages but I have a strange issue: while most package variables are file-scoped or package-scoped, templates are not: they are global by default. 我试图在程序包中创建模板,但遇到一个奇怪的问题:尽管大多数程序包变量是文件作用域或程序包作用域的,但模板却不是:默认情况下它们是全局的。
How can I create package-scoped templates? 如何创建包范围的模板?
Looking at trello.com/c/igqeUcwM/17-template-and-helper-namespacing it seems to be a requested feature, but not currently possible.
查看trello.com/c/igqeUcwM/17-template-and-helper-namespacing,这似乎是一项要求提供的功能,但目前尚无法实现。
Thanks, @christian-fritz 谢谢@ christian-fritz
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.