Laravel 4 Blade 模板文档
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17792180/
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
Laravel 4 Blade templates documentation
提问by Alex_B
I'm new to Laravel 4. I don't seem to find adequate documentation on the Blade templating system.
我是 Laravel 4 的新手。我似乎没有找到关于 Blade 模板系统的足够文档。
I see some examples at http://laravel.com/docs/templateswith no explanation.
我在http://laravel.com/docs/templates看到一些没有解释的例子。
Another example at Laravel 4 Controller Templating / Blade - Correct method?
Laravel 4 控制器模板/刀片的另一个例子- 正确的方法?
Where are @section, @yield, @show, etc defined and documented? Where is the Blade templating system actually explained?
@section、@yield、@show 等在哪里定义和记录?Blade 模板系统实际上在哪里解释?
Or is it so new, or so "intuitive", that it needs no explanation? Or I could use another templating system that is better documented?
或者它是如此新颖,或如此“直观”,以至于不需要解释?或者我可以使用另一个更好记录的模板系统?
回答by GreGreg
I would say Blade is so easy that it doesn't need documentation.
我会说 Blade 非常简单,不需要文档。
Follow this link great tutorial by Jeffrey Way which will take you through everything you need to know.
按照 Jeffrey Way 的这个链接很棒的教程,它将带您了解您需要了解的一切。
回答by James
I am totally convinced that the original documentation about has many areas of opportunity. Anyway, Dayle Rees has done an excellent job through the pages of Code Bright. The Blade section of the bookhas some great examples that perfectly complement the original documentation. I find it strange that wasn't previously mentioned. You should give it a look.
我完全相信原始文档有很多机会。无论如何,Dayle Rees 通过Code Bright的页面做得非常出色。本书的 Blade 部分有一些很好的例子,可以完美地补充原始文档。我觉得奇怪的是之前没有提到。你应该看看。
Regards!
问候!
回答by Jeff White
The documentation for Blade isn't in the laravel.com docs. No, they tucked it away in their readthedocs.io account:
Blade 的文档不在 laravel.com 文档中。不,他们把它藏在他们的 readthedocs.io 帐户中: