mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-17 03:29:31 -07:00
The `script.html` partial template has been added to handle the rendering of script tags with various attributes and options. It supports the following features: - If the `Content` variable is provided, it will be rendered as the content of the script tag. - If the `Source` variable starts with "<script", it will be rendered as safe HTML. - If the `Source` variable is provided and is a local resource, it will be processed as a template and minified if specified. - If the `Fingerprint` variable is provided, the resource will be fingerprinted and the integrity attribute will be set accordingly. - The `Link` variable can be used to specify an external script URL. - The `Esm` variable can be set to true to render the script tag as a module. - The `Crossorigin` variable can be set to true to add the crossorigin attribute. - The `Async` variable can be set to true to add the async attribute. - The `Defer` variable can be set to true to add the defer attribute. - The `Attr` variable can be used to add additional attributes to the script tag. This new partial template provides flexibility and customization options for rendering script tags in the application.