mirror of
https://github.com/Sped0n/bridget.git
synced 2026-04-14 10:09:31 -07:00
c0283620bd056ed5a34b594d8551f707bd5f6663
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.
chore(package.json): update dev, build, and server scripts to improve build process and file copying
Description
Languages
TypeScript
63.5%
HTML
18.5%
SCSS
12.5%
JavaScript
3%
Shell
1.5%
Other
1%