prepareTemplate(ts, defaults, input, delimiter = "\\s+-\\s+") {
        return __awaiter(this, void 0, void 0, function* () {
            const templateSettings = yield this.getTemplateSettings(ts, defaults);
            const fieldData = this.parseInput(input, templateSettings.inputFieldList, delimiter);
            return {
                input: input,
                templateID: ts,
                settings: templateSettings,
                replacementTemplate: templateSettings.textReplacementTemplates[0],
                data: fieldData,
            };
        });
    }
/*
     * Sets a template up for use. Requires:
     * - template ID to find the template
     * - input text
     * - a delimiter to turn the input text into field values
     */
Sets a template up for use. Requires:
- template ID to find the template
- input text
- a delimiter to turn the input text into field values
Sets a template up for use . Requires : - template ID to find the template - input text - a delimiter to turn the input text into field values
prepareTemplate(ts, defaults, input, delimiter = "\\s+-\\s+") {
        return __awaiter(this, void 0, void 0, function* () {
            const templateSettings = yield this.getTemplateSettings(ts, defaults);
            const fieldData = this.parseInput(input, templateSettings.inputFieldList, delimiter);
            return {
                input: input,
                templateID: ts,
                settings: templateSettings,
                replacementTemplate: templateSettings.textReplacementTemplates[0],
                data: fieldData,
            };
        });
    }
prepareTemplate ( ts , defaults , input , delimiter = "\\s+-\\s+" ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { const templateSettings = yield this . getTemplateSettings ( ts , defaults ) ; const fieldData = this . parseInput ( input , templateSettings . inputFieldList , delimiter ) ; return { input : input , templateID : ts , settings : templateSettings , replacementTemplate : templateSettings . textReplacementTemplates [ 0 ] , data : fieldData , } ; } ) ; }
Sets a template up for use.
Sets a template up for use .