diff options
author | anekos | 2009-11-25 09:52:42 +0000 |
---|---|---|
committer | anekos | 2009-11-25 09:52:42 +0000 |
commit | 989862dd3bddb000309cf933985a24c2a8618a60 (patch) | |
tree | 791824c870ef3f4b88f0240e93eb1e5412504b7f | |
parent | 6defd84e23fd8a1173a6d50d4fcb1871809764a4 (diff) | |
download | vimperator-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
-rw-r--r-- | PMWriter.js | 11 |
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( |