Coder Social home page Coder Social logo

Unexpected < about blade-formatter HOT 5 CLOSED

shufo avatar shufo commented on August 29, 2024
Unexpected <

from blade-formatter.

Comments (5)

palpalani avatar palpalani commented on August 29, 2024 1

Yes, I am also getting the same error when there is a multiline comment block like {{-- --}}.

from blade-formatter.

lanphan avatar lanphan commented on August 29, 2024 1

Hi all,
Is there any progress on this problem? I have same problem.

My input:

{{-- <li class="nav-item">
                            <a href="{{ route("configuration.vendor-complaint-entry.index") }}" class="nav-link
        {{ request()->is('configuration/vendor-complaint-entry*') ? 'active' : '' }}">
        <p>
            <span>{{ trans('cruds.vendorComplaintEntry.title') }}</span>
        </p>
        </a>
</li> --}}

from blade-formatter.

shufo avatar shufo commented on August 29, 2024

@HDVinnie
Thanks for feedback!
Could you provide input and expected output?

from blade-formatter.

HDVinnie avatar HDVinnie commented on August 29, 2024

Its due to blade commenting.

                    {{--@foreach ($downloadOptions as $d => $dO)
                        <tr>
                            <td>{{ $dO['description'] }}</td>
                            <td>{{ $dO['cost'] }}</td>
                            <td>
                                <form method="POST" action="{{ route('bonusexchange', ['id' => $dO['id']]) }}">
                                    @csrf
                                    <button type="submit" class="btn btn-sm btn-info btn-exchange">@lang('bon.exchange')</button>
                                </form>
                            </td>
                        </tr>
                    @endforeach--}}

Here is input:
https://github.com/HDInnovations/UNIT3D-Community-Edition/blob/master/resources/views/bonus/store.blade.php

from blade-formatter.

shufo avatar shufo commented on August 29, 2024

I just published 1.2.2 and fixes this behaviour.

from blade-formatter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.