Laravel 4 中的树枝模板
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/16210881/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 07:44:11 来源:igfitidea点击:
Twig templates in Laravel 4
提问by gcman105
I would like to use TWIG templating instead for BLADE, is this possible?
我想为 BLADE 使用 TWIG 模板,这可能吗?
Are there plans to support TWIG? As it is part of Symfony 2 and Laravel 4 relies on Symfony it would seem to be a good idea.
是否有计划支持 TWIG?由于它是 Symfony 2 的一部分,而 Laravel 4 依赖于 Symfony,这似乎是一个好主意。
回答by Nils Werner
There exists a composer package TwigBridgethat does exactly that.
有一个Composer包TwigBridge可以做到这一点。