readMetadata(path) {
        return __awaiter(this, void 0, void 0, function* () {
            try {
                const data = yield this.vault.read(this.vault.getAbstractFileByPath(path));
                const result = lib(data);
                return result;
            }
            catch (error) {
                console.log("Couldn't read template file " + path, error);
            }
        });
    }
// Gets the YAML metadata for the given template path
Gets the YAML metadata for the given template path
Gets the YAML metadata for the given template path
readMetadata(path) {
        return __awaiter(this, void 0, void 0, function* () {
            try {
                const data = yield this.vault.read(this.vault.getAbstractFileByPath(path));
                const result = lib(data);
                return result;
            }
            catch (error) {
                console.log("Couldn't read template file " + path, error);
            }
        });
    }
readMetadata ( path ) { return __awaiter ( this , void 0 , void 0 , function * ( ) { try { const data = yield this . vault . read ( this . vault . getAbstractFileByPath ( path ) ) ; const result = lib ( data ) ; return result ; } catch ( error ) { console . log ( "Couldn't read template file " + path , error ) ; } } ) ; }
Gets the YAML metadata for the given template path
Gets the YAML metadata for the given template path