From 6536b91042bc774c9dd044acc30dfd744883d7d3 Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 1 Feb 2009 12:39:23 +0000 Subject: 個別HTMLの改良 git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@29392 d0d07461-0603-4401-acd4-de1884942a52 --- PMWriter.js | 59 +++++++++++++++++++++++++++++++++++++++++++---------------- 1 file changed, 43 insertions(+), 16 deletions(-) (limited to 'PMWriter.js') diff --git a/PMWriter.js b/PMWriter.js index 311e776..df87a62 100644 --- a/PMWriter.js +++ b/PMWriter.js @@ -107,23 +107,8 @@ } } - // プラグイン毎のドキュメント - io.writeFile( - io.getFile(outputDir + htmlFilename), - - - {pluginName} - - - - {template.table(plugin.name, plugin)} - - .toString() - ); - - // index.html + let authors; { - let authors; for each (let a in pluginInfo.author) { let hp = a.@homepage.toString(); let xml = hp ? {a.toString()} @@ -133,6 +118,48 @@ else authors = xml; } + } + + // プラグイン毎のドキュメント + { + io.writeFile( + io.getFile(outputDir + htmlFilename), + + + {plugin.info.name.toString()} + + + + +
+

{plugin.info.name.toString()}

+
+
+
Description
+
{plugin.info.description || '---'}
+
Latest version
+
{plugin.info.version || '???'}
+
Vimperator version
+
{(plugin.info.minVersion || '?') + ' - ' + (plugin.info.maxVersion || '?')}
+
URL
+
{CodeRepos + pluginFilename}
+
File URL
+
{plugin.info.updateURL || '--'}
+
Author
+
{authors}
+
License
+
{plugin.info.license || '--'}
+
+
+
+
{plugin.info.detail}
+ + .toString() + ); + } + + // index.html + { indexHtml += {"\u2606"} -- cgit v1.2.3