-
-
Notifications
You must be signed in to change notification settings - Fork 600
Antlers wrapper for blade #5058
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
Conversation
|
I've had to add the |
|
Also, I'd prefer |
|
@riasvdv we opted for a more fluent approach, taking inspiration from our |
|
Amazing! Looking forward to being able to update my blogpost on how easy it is when this is released 😄 |
|
Cool, do share when done! |
Resurrecting a version of the work done by @riasvdv in #2724 and #2717 (🎉) to bring antlers support to blade via convenient wrappers.
We don't want to pollute the global namespace, but as a
Statamic::accessible function, we're thinking it would be nice to bring this kind of antlers support to blade.The nice thing about Rias' approach here is that it'll allow the user to work with / loop over the output however they want in blade (ie.
@foreach,@forelse, pass data into an@include, etc) 👍TODO:
FluentTaghelper class, inspired by our fluentModifyhelper class.Statamic::tag()wrapper.Statamic::modify()wrapper.Example
Statamic::tag()blade usage:Example
Statamic::modify()blade usage: