rollup-plugin-handlebars-precompiler
Version:
Rollup plugin to precompile Handlebars templates into JavaScript modules
10 lines • 516 B
TypeScript
/**
* Returns the partial names parsed from a Handlebars template
* @param {hbs.AST.Program} ast - abstract syntax tree for a Handlebars template
* returned by Handlebars.parse()
* @returns {string[]} - a list of partial names parsed from the template
* @see https://handlebarsjs.com/guide/partials.html
* @see https://github.com/handlebars-lang/handlebars.js/blob/master/docs/compiler-api.md
*/
export default function collectPartials(ast: hbs.AST.Program): string[];
//# sourceMappingURL=partials.d.ts.map