UNPKG

@muban/template

Version:

Writing templates for Muban components during development

11 lines (10 loc) 407 B
/** * Helper function to render JSON script tags with a JS data structure * Useful to render properties for components that contain a bit more data * than is practical for using data-attributes * * TODO: add this as part of the future helper function to render component containers * * @param content */ export declare function jsonScriptTemplate(content: Array<any> | Record<string, any>): string;