MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / parseMultipleTemplates

Method parseMultipleTemplates

packages/core/ui/builder/index.ts:141–144  ·  view source on GitHub ↗

* Creates an array of KeyedTemplates from string * @param value The xml of the template to be parsed * @param exports Current context of the template

(value: string, context: any)

Source from the content-addressed store, hash-verified

139 * @param exports Current context of the template
140 */
141 static parseMultipleTemplates(value: string, context: any): Array<KeyedTemplate> {
142 const dummyComponent = `<ListView><ListView.itemTemplates>${value}</ListView.itemTemplates></ListView>`;
143 return parseInternal(dummyComponent, context).component['itemTemplates'];
144 }
145}
146
147/**

Callers 3

index.tsFile · 0.80
parseMultipleTemplatesFunction · 0.80

Calls 1

parseInternalFunction · 0.85

Tested by

no test coverage detected