mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-01 22:34:38 +08:00
20 lines
627 B
PHP
20 lines
627 B
PHP
---
|
|
{!! $frontmatter !!}
|
|
---
|
|
<!-- START_INFO -->
|
|
{!! $infoText !!}
|
|
<!-- END_INFO -->
|
|
{!! $prependMd !!}
|
|
@foreach($parsedRoutes as $groupName => $routes)
|
|
#{!! $groupName !!}
|
|
{{-- We pick the first non-empty description we see. --}}
|
|
{!! \Illuminate\Support\Arr::first($routes, function ($route) { return $route['groupDescription'] !== ''; })['groupDescription'] ?? '' !!}
|
|
@foreach($routes as $parsedRoute)
|
|
@if($writeCompareFile === true)
|
|
{!! $parsedRoute['output'] !!}
|
|
@else
|
|
{!! isset($parsedRoute['modified_output']) ? $parsedRoute['modified_output'] : $parsedRoute['output'] !!}
|
|
@endif
|
|
@endforeach
|
|
@endforeach{!! $appendMd !!}
|