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 · 1 comment
Open

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

SkyspotEmil opened this issue Sep 15, 2024 · 1 comment
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

Copy link
Contributor

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

@github-actions github-actions bot added the Stale label Nov 15, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 25, 2024
@shufo shufo reopened this Dec 26, 2024
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