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...")
 
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.

Revision as of 07:55, 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