Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Problem with yield and '' as second parameter (using v4.13) #189

Open
AzzaAzza69 opened this issue Jun 1, 2024 · 0 comments
Open

Problem with yield and '' as second parameter (using v4.13) #189

AzzaAzza69 opened this issue Jun 1, 2024 · 0 comments

Comments

@AzzaAzza69
Copy link

in template:
<div>Show all @yield('list-label','inactive') records</div>

in the inherited template, this doesn't work:
@section('list-label','')
as I ended up with
<LF>@parentXYZABC<LF> before the opening tag.

I could use either a single space (which I didn't want) or this syntax:
@section('list-label')@endsection

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant