diff --git a/module/handlebarsHelpers/_index.mjs b/module/handlebarsHelpers/_index.mjs index d0923e8..b613f61 100644 --- a/module/handlebarsHelpers/_index.mjs +++ b/module/handlebarsHelpers/_index.mjs @@ -1,5 +1,7 @@ import { filePath } from "../consts.mjs"; +import { options } from "./options.mjs"; export default { systemFilePath: filePath, + "taf-options": options, }; diff --git a/module/handlebarsHelpers/options.mjs b/module/handlebarsHelpers/options.mjs new file mode 100644 index 0000000..664aaa6 --- /dev/null +++ b/module/handlebarsHelpers/options.mjs @@ -0,0 +1,34 @@ +/** + * @typedef {object} Option + * @property {string} [label] + * @property {string|number} value + * @property {boolean} [disabled] + */ + +/** + * @param {string | number} selected The selected value + * @param {Array`, + ); + }; + return new Handlebars.SafeString(htmlOptions.join(`\n`)); +};