Skip to content
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

Improvements to bassets #18

Closed
tabacitu opened this issue Feb 14, 2023 · 1 comment
Closed

Improvements to bassets #18

tabacitu opened this issue Feb 14, 2023 · 1 comment

Comments

@tabacitu
Copy link
Member

We've decided to do this:

@basset('https://domain.com/operations/reorder.js') // if HTTPS, then internalize
@basset(base_path('resources/operations/reorder.js')) // if absolute path, then internalize
@basset(resource_path('operations/reorder.js')) // if absolute path, then internalize
@basset(public_path('operations/reorder.js')) // if public_path, then do not internalize
@basset('operations/reorder.js') // if simple string, assume it's a public path

And let's also do this:

@bassetBlock('unique_name_for_code_block.js')
    <!-- Your JS here -->
@bassetBlock

@bassetBlock('unique_name_for_code_block.css')
    <!-- Your CSS here -->
@endBassetBlock
@tabacitu
Copy link
Member Author

#19 covers ALL of these ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant