We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If I make a custom antlers tag and return an array of data, I know we can iterate over using a tag pair:
{{ my_tag_array_data }} {{ title }} {{ author }} {{ /my_tag_array_data }}
But what if I want to pass that data into a vue component:
<my-component :some-prop='{{ my_tag_array_data | to_json }}'>
Maybe the user could explicitly set $isPair = false in the custom tag, or maybe antlers could detect if modifiers are used?We
$isPair = false
The text was updated successfully, but these errors were encountered:
Another idea I had could be a Variable class that works similar to a Tags class, but doesn't have parameters.
Variable
Tags
Any parameters on it would actually be treated like modifiers.
class MyVariable { public function value() { return 'something'; } }
{{ my_variable | upper }} // SOMETHING
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
If I make a custom antlers tag and return an array of data, I know we can iterate over using a tag pair:
But what if I want to pass that data into a vue component:
Maybe the user could explicitly set
$isPair = false
in the custom tag, or maybe antlers could detect if modifiers are used?WeThe text was updated successfully, but these errors were encountered: