Difference between revisions of "Blade (templating engine)"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Created page with "'''Blade''' is a web template system for Laravel. == Description == Blade combines one or more templates with a data model to produce resulting views, doing that by...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
'''Blade''' is a [[web template system]] for [[Laravel]].
+
'''Blade''' is a [[web template system]] (or templating engine) for [[Laravel]].
  
 
== Description ==
 
== Description ==
  
Blade combines one or more templates with a data model to produce resulting views, doing that by transpiling the templates into cached PHP code for improved performance.
+
Blade combines one or more templates with a data model to produce resulting views, doing that by transpiling the templates into cached [[PHP]] code for improved performance.
  
 
Blade also provides a set of its own control structures such as conditional statements and loops, which are internally mapped to their PHP counterparts.
 
Blade also provides a set of its own control structures such as conditional statements and loops, which are internally mapped to their PHP counterparts.
Line 13: Line 13:
 
* [[Laravel]]
 
* [[Laravel]]
 
* [[Web template system]]
 
* [[Web template system]]
 +
 +
== External links ==
 +
 +
* [https://laravel.com/docs/5.0/templates Blade templating] @ laravel.com
 +
* [https://scotch.io/tutorials/simple-laravel-layouts-using-blade Simple Laravel Layouts using Blade] @ scotch.io
  
 
[[Category:PHP]]
 
[[Category:PHP]]
 
[[Category:Web applications]]
 
[[Category:Web applications]]

Latest revision as of 06:57, 17 August 2016

Blade is a web template system (or templating engine) for Laravel.

Description

Blade combines one or more templates with a data model to produce resulting views, doing that by transpiling the templates into cached PHP code for improved performance.

Blade also provides a set of its own control structures such as conditional statements and loops, which are internally mapped to their PHP counterparts.

Furthermore, Laravel services may be called from Blade templates, and the templating engine itself can be extended with custom directives.

See also

External links