-
Notifications
You must be signed in to change notification settings - Fork 12
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
[Feature Request] Helper function? #83
Comments
Just realized if we do (a) or (c)... this would make So you'd have two ways of using Basset:
🤯 |
Guess the helper would be a wrapper around |
🤷♂️ does that work if the asset hasn't been internalized yet? I don't think so. @promatik will know more, but I think it'd be more like: public function basset(string $asset) {
$status = Basset::basset($asset);
// TODO: Maybe do some checks if the asset hasn't been internalized? I don't know.
return Basset::getUrl($asset);
} But in any case, yes, that would be the return, |
We got some feedback that a helper function could be useful. And indeed it'd be easy to create a
basset()
function that returns... what? That's the question. What would it return?It could be:
<script src="{{ basset('https://path/to/file.js') }}">
{{ basset('https://path/to/file.js') }}
instead of@basset('https://path/to/file.js')
So... probably (a) right? @promatik what do you think?
The text was updated successfully, but these errors were encountered: