lonnieezell / Bonfire2

CodeIgniter 4-based application skeleton
MIT License
127 stars 49 forks source link

Add more flexible asset attributes #418

Closed dgvirtual closed 4 months ago

dgvirtual commented 5 months ago

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.

dgvirtual commented 4 months ago

Ok, so please someone merge it.