area17 / blast

Storybook for Laravel Blade 🚀
https://dev.to/area17/getting-started-with-blast-storybook-for-laravel-blade-c5c
Apache License 2.0
268 stars 39 forks source link

Make storybook directive parsing more consistent with regular blade statements #63

Closed koenvu closed 1 year ago

koenvu commented 1 year ago

First of all, thank you for this package and the accompanying article 🙌 . We are looking into potentially using this in our projects.

One thing I noticed is that I could not use @storybook (['....']) (notice the whitespace). This PR makes it more consistent with how Laravel parses such statements. I had to check, but yes, in fact Laravel does allow the statement below, not just zero or one spaces 😅; this change is straight from their parser.

@foreach         (...)
    ...
@endforeach
mrtimbrook commented 1 year ago

I like it! Thanks!