vue-blox-mustache
Version:
Adds mustache template support to vue-blox.
20 lines (19 loc) • 683 B
TypeScript
import type { BloxContext, BloxPluginInterface } from 'vue-blox';
/**
* A plugin for rendering mustache templates.
*/
declare class BloxPluginMustache implements BloxPluginInterface {
run({ context, key, value, variables, buildContext }: {
context: BloxContext;
key: string;
value: any;
variables: any;
buildContext: ({ view, variables }: {
view: any;
variables: any;
}) => BloxContext | undefined;
}): void;
evaluate(value: any, variables: any, steps?: number, maxSteps?: number): any;
}
declare function getPluginMustache(): BloxPluginMustache;
export { BloxPluginMustache, getPluginMustache };