This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Default settings | |
| IMDSV2_SETTING="required" # Change to "optional" if you want to revert back | |
| DRYRUN=false | |
| # Parse arguments | |
| while [[ "$#" -gt 0 ]]; do | |
| case $1 in | |
| --setting) IMDSV2_SETTING="$2"; shift ;; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Handlebars from "handlebars"; | |
| /** | |
| * Embeds an SVG file into the template | |
| * | |
| * Do note: rendering when inside handlebars will not be relative to a imported template file. | |
| * | |
| * It has two modes, browser mode and node mode. | |
| * When in browser mode, it will place a random id to be filled in when the file is successfully collected | |
| * |
OlderNewer