aboutsummaryrefslogtreecommitdiffstats
path: root/PMWriter.js
diff options
context:
space:
mode:
authoranekos2009-11-25 09:52:42 +0000
committeranekos2009-11-25 09:52:42 +0000
commit989862dd3bddb000309cf933985a24c2a8618a60 (patch)
tree791824c870ef3f4b88f0240e93eb1e5412504b7f /PMWriter.js
parent6defd84e23fd8a1173a6d50d4fcb1871809764a4 (diff)
downloadvimperator-plugins-989862dd3bddb000309cf933985a24c2a8618a60.tar.bz2
Follow tip
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@35993 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'PMWriter.js')
-rw-r--r--PMWriter.js11
1 files changed, 5 insertions, 6 deletions
diff --git a/PMWriter.js b/PMWriter.js
index 9b65d5c..97a3499 100644
--- a/PMWriter.js
+++ b/PMWriter.js
@@ -149,7 +149,7 @@
if (!/\.js$/.test(file.path))
return;
- if (!/PLUGIN_INFO/.test(io.readFile(file.path)))
+ if (!/PLUGIN_INFO/.test(io.File(file.path).read()))
return;
try {
@@ -259,8 +259,7 @@
<div class="detail" id="detail">{detailBody}</div>
</div>;
- io.writeFile(
- io.getFile(outputDir + htmlFilename),
+ io.File(outputDir + htmlFilename).write(
<html>
<head>
<title>{pluginFilename}</title>
@@ -350,11 +349,11 @@
</body>
</html>.toString();
- io.writeFile(io.getFile(outputDir + 'index.html'), indexHtml.toString());
- io.writeFile(io.getFile(outputDir + 'all.html'), allHtml.toString());
+ io.File(outputDir + 'index.html').write(indexHtml.toString());
+ io.File(outputDir + 'all.html').write(allHtml.toString());
let infoXML = <plugins>{concatXML(pminfos)}</plugins>;
- io.writeFile(io.getFile(outputDir + 'info.xml'), infoXML.toString());
+ io.File(outputDir + 'info.xml').write(infoXML.toString());
}
commands.addUserCommand(