🔴 Laravel
Beginner
What is Blade templating in Laravel?
Answer
Blade is Laravel's powerful, lightweight templating engine. Blade files use the .blade.php extension and live in resources/views/. Blade compiles to plain PHP and caches the result. Key features: template inheritance with @extends("layout") and @section("content"), includes with @include("partial"), components with @component or <x-button>, directives like @if, @foreach, @forelse, @while, @switch, output escaping with {{ $var }} (auto-escaped) vs {!! $var !!} (raw), and CSRF field with @csrf. You can also create custom Blade directives.