silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
719 stars 820 forks source link

No options argument for Requirements::customScript #11060

Closed Ofthemasses closed 6 months ago

Ofthemasses commented 7 months ago

Version 5.1.3

Description

Currently, there is no way to specify tag attributes when using Requirements::customScript(). This is an issue if you want to use customScripts with custom attributes. E.g. Creating a customScript with type="module".

I intend to make a pull request to implement this feature.

PRs