Skip to content

Commit cc42a97

Browse files
html build fix
1 parent 1472496 commit cc42a97

File tree

2 files changed

+5
-26
lines changed

2 files changed

+5
-26
lines changed

cache/projectTemplate.xml

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -329,32 +329,7 @@ Method returns user application.</Description>
329329
<ReturnType>%Status</ReturnType>
330330
<Implementation><![CDATA[
331331
&html<
332-
<!DOCTYPE html>
333-
<html>
334-
<head lang="en">
335-
<meta charset="UTF-8">
336-
<title>Cache UML explorer</title>
337-
<link rel="stylesheet" href="css/CacheUMLExplorer.css">
338-
<script src="js/CacheUMLExplorer.js"></script>
339-
</head>
340-
<body onload="var cue = new CacheUMLExplorer(document.getElementById('treeView'), document.getElementById('classView'))">
341-
<div class="ui-body">
342-
<div class="ui-sideBlock">
343-
<div id="treeView">
344-
345-
</div>
346-
</div>
347-
<div class="ui-mainBlock">
348-
<div class="ui-ClassInfo">
349-
<span id="className"></span>
350-
</div>
351-
<div id="classView">
352-
353-
</div>
354-
</div>
355-
</div>
356-
</body>
357-
</html>
332+
{{replace:html}}
358333
>
359334
return $$$OK
360335
]]></Implementation>

gulpfile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@ gulp.task("exportCacheXML", [
116116
/\{\{replace:js}}/,
117117
function () { return fs.readFileSync("build/web/js/CacheUMLExplorer.js", "utf-8"); }
118118
))
119+
.pipe(replace(
120+
/\{\{replace:html}}/,
121+
function () { return fs.readFileSync("build/web/index.html", "utf-8"); }
122+
))
119123
.pipe(rename(function (path) { path.basename = "CacheUMLExplorer-v" + pkg["version"]; }))
120124
.pipe(gulp.dest("build/Cache"));
121125
});

0 commit comments

Comments
 (0)