MCPcopy Create free account
hub / github.com/DTStack/Taier / renderMustache

Function renderMustache

taier-ui/scripts/getSwagger.js:195–199  ·  view source on GitHub ↗
(interfaceData)

Source from the content-addressed store, hash-verified

193
194/* 渲染获取字符串 */
195function renderMustache(interfaceData) {
196 const temp = fs.readFileSync(require.resolve(DEFAULT_TEMPLATE_PATH), 'utf-8').toString();
197 const renderString = Mustache.render(temp, { result: interfaceData });
198 return renderString;
199}
200
201/* 根据接口类型分类 */
202function sortByTags(paths, result) {

Callers 2

handleFileDataFunction · 0.85
swaggerFunction · 0.85

Calls 2

toStringMethod · 0.45
renderMethod · 0.45

Tested by

no test coverage detected