Posts

Showing posts from June 30, 2018

Blade Templates in Laravel

Image
Recently I've been getting into Laravel and the templating engine being used for the View portion of the Laravel MVC is the awesome Blade templating engine . Generally speaking if you used one templating language you can easily figure out others.  At that point it mostly comes down to choosing a template language that suits us the most, for example, I find EJS syntax somewhat ugly,  while Blade syntax is very eye pleasing to le me. Laravel - Blade Templates Blade is called using @ symbol, to define a master layout we use something like this: < html > < head > < title > App Name - @ yield ( 'title' ) </ title > </ head > < body > @ section ( 'sidebar' ) This is the master sidebar . @show < div class = " container " > @ yield ( 'content' ) </ div > </ body > </ html > Templates use plain H...