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

Add more flexible asset attributes #418

Merged
merged 3 commits into from
Mar 11, 2024

Conversation

dgvirtual
Copy link
Contributor

Add third argument to helper asset_link function; if a string is passed, the string is interpreted as a value-less attribute; if an array is passed, they are formed into set of attribute="value" pairs. In case of css assets, if no rel attribute is provided, the default rel="stylesheet" is returned.

review with care, for it is not compatible with recently added functionality, which is not in use within Bonfire2 but might be in use by someone using it.

Copy link
Owner

@lonnieezell lonnieezell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As I mentioned elsewhere, I think it's fine. My previous fix didn't really seem to work well anyway.

@dgvirtual
Copy link
Contributor Author

Ok, so please someone merge it.

@lonnieezell lonnieezell merged commit cfb5ebe into lonnieezell:develop Mar 11, 2024
10 checks passed
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

Successfully merging this pull request may close these issues.

2 participants