Files
Ben Faerber fa44e51940 Add Laravel Blade language support (#1353)
- Detect Blade by .blade extension and .blade.php compound suffix
- Generic path_suffixes field for any future compound-extension language;
  matched in from_path before extension lookup so .blade.php wins over PHP
- Recognise Blade ({{-- --}}) and HTML (<!-- -->) multi-line comments
- Sanitise auto-generated test idents so blade.blade.php produces a
  valid Rust function name
- Add blade.blade.php fixture covering both comment styles
2026-05-06 18:42:32 +02:00

24 lines
528 B
PHP

{{-- 23 lines 15 code 5 comments 3 blanks --}}
{{--
A welcome page demonstrating Blade syntax.
--}}
@extends('layouts.app')
@section('content')
<!-- Page header -->
<div class="container">
<h1>{{ $title }}</h1>
@if ($users->isNotEmpty())
<ul class="list-group">
@foreach ($users as $user)
<li>{{ $user->name }}</li>
@endforeach
</ul>
@else
<p>No users found.</p>
@endif
</div>
@endsection