@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).
20 lines • 927 B
TypeScript
import { generateAttributesJS } from './attributes-js-generator.js';
export { generateAttributesJS };
/**
* 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 declare function template(cmp: any, isThemeLayout: any, 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 declare function javascript(moduleName: any, attributesVal: any): string;
//# sourceMappingURL=view-template-generator.d.ts.map