Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Bug]: @section with inline value cannot be handled #291

Open
SkyspotEmil opened this issue Sep 15, 2024 · 0 comments
Open

[Bug]: @section with inline value cannot be handled #291

SkyspotEmil opened this issue Sep 15, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@SkyspotEmil
Copy link

Description

According to the Laravel documentation a @section() tag can have an "inline" value like this:

@section('title', 'Page Title')

In this case it doesn't have a @endsection tag.

Expected Behavior

The expected behavior is that it can format a document like this, which is taken directly from the Laravel documentation:

<!-- resources/views/child.blade.php -->
 
@extends('layouts.app')
 
@section('title', 'Page Title')
 
@section('sidebar')
    @parent
 
    <p>This is appended to the master sidebar.</p>
@endsection
 
@section('content')
    <p>This is my body content.</p>
@endsection

Actual Behavior

In actuallity the above gives the error SyntaxError: Unpaired condition control structure

Additional Context

version: 3.2.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants