UNPKG

@communities-webruntime/services

Version:

If you would like to run Lightning Web Runtime without the CLI, we expose some of our programmatic APIs available in Node.js. If you're looking for the CLI documentation [you can find that here](https://www.npmjs.com/package/@communities-webruntime/cli).

19 lines 885 B
/** * Generate an LWC template for a provided component * * @param {object*} cmp - The top level component to render an LWC template for * @param {boolean} isThemeLayout - Whether that component is a theme layout or not */ export function template(cmp: any, isThemeLayout: boolean, isRenderDesignMode?: boolean): { html: any; attributes: string; }; /** * Generates javascript which imports an HTML file and exports the HTML as default * * @param {string} moduleName - The name of the view, used to specify the import location of the HTML * @param {string} attributesVal - The attribute set value of the view, used to inject component attribute values during runtime */ export function javascript(moduleName: string, attributesVal: string): string; export const generateAttributesJS: (attributeSet: any) => string; //# sourceMappingURL=view-template-generator.d.ts.map