Is Sass similar to Laravel blade

Last updated : May 15, 2017

Posted by: Rahul Chauhan

No, Sass and Blade are not similar. Sass (Syntactically awesome style sheets) is an extension of CSS(Cascading Style Sheets)(Formatting the output) and relies on a compiler like Compile Sass while Blade is a view templating engine(Displaying the output) and does not rely on any containers.

Sass

Sass allows you to use things like variables, nested rules, inline imports and more. It also helps to keep things organized and allows you to create stylesheets faster.

The only requirement for using Sass is that you must have Ruby installed and need a compiler like Compile Sass.

Sass includes two syntax options:

SCSS (Sassy CSS): Uses the .scss file extension and is fully compliant with CSS syntax.

Indented (simply called 'Sass'): Uses .sass file extension and uses indentation rather than brackets; it is not fully compliant with CSS syntax, but it's quicker to write.


For more details:

What is Sass? Guide to CSS with superpowers

Blade

This is a view templating engine which is extracted from Laravel. It is independent and does not rely upon Laravel's Container or any others.

Blade allows you to do things like Define sections, Extend views, Echo and escaping, Ifs, Loops and Includes.

It is cleaner and a shorter way than normal PHP and it also allows you to easily create layouts, extend them and include partials to prevent you from repeating the same HTML in multiple files.

For more details:

Blade Templates - Laravel - The PHP Framework For Web Artisans




Is Sass similar to Laravel blade

Is Sass similar to Laravel blade

No, Sass and Blade are not similar. Sass (Syntactically awesome style...
Top 3 things you should know before learning Laravel framework

Top 3 things you should know before learning Laravel framework

It is a good idea to start with Laravel framework because now-a-days Laravel is...