mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
2553c7e1fc70b1d3a142bdd4ed9899bda81b5765
The `script.html` partial template has been added to handle the rendering of script tags with various options. This template 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 also be fingerprinted and the integrity attribute will be set accordingly. - If the `Link` variable is provided, it will be used as the source of the script tag. - The `Crossorigin` variable can be used to add the crossorigin attribute to the script tag. - The `Async` variable can be used to add the async attribute to the script tag. - The `Defer` variable can be used to add the defer attribute to the script tag. - The `Attr` variable can be used to add additional attributes to the script tag. This new partial template provides flexibility in rendering script tags with different options based on the provided variables.
Description
Languages
TypeScript
63.5%
HTML
18.5%
SCSS
12.5%
JavaScript
3%
Shell
1.5%
Other
1%