From 4cffe0e206019beecc141e230e64dfe3d47bf3bc Mon Sep 17 00:00:00 2001 From: anekos Date: Sun, 18 Jan 2009 09:09:56 +0000 Subject: 複数 author git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@28597 d0d07461-0603-4401-acd4-de1884942a52 --- PMWriter.js | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'PMWriter.js') diff --git a/PMWriter.js b/PMWriter.js index 89a66d0..311e776 100644 --- a/PMWriter.js +++ b/PMWriter.js @@ -16,19 +16,6 @@ if (!(pluginDirPath && outputDir)) return; - let AUTHORS = { - Trapezoid: 'http://unsigned.g.hatena.ne.jp/Trapezoid/', - anekos: 'http://d.hatena.ne.jp/nokturnalmortum/', - "halt feits": 'http://project-p.jp/halt/', - hogelog: 'http://d.hatena.ne.jp/hogelog/', - janus_wel: 'http://d.hatena.ne.jp/janus_wel/', - mattn: 'http://mattn.kaoriya.net', - pekepeke: 'http://d.hatena.ne.jp/pekepekesamurai/', - pekepekesamurai: 'http://d.hatena.ne.jp/pekepekesamurai/', - suVene: 'http://d.zeromemory.info/', - teramako: 'http://d.hatena.ne.jp/teramako/', - }; - if (!liberator.plugins.pmwriter) liberator.plugins.pmwriter = {}; @@ -136,6 +123,16 @@ // index.html { + let authors; + for each (let a in pluginInfo.author) { + let hp = a.@homepage.toString(); + let xml = hp ? {a.toString()} + : {a.toString()} + if (authors) + authors += , + xml; + else + authors = xml; + } indexHtml += {"\u2606"} @@ -145,7 +142,7 @@ {plugin.info.description} - {pluginInfo.author.toString()} + {authors} } @@ -180,7 +177,7 @@ ]]> -

{title}

+

{DOCUMENT_TITLE}

@@ -189,6 +186,7 @@ {indexHtml}
Name
+
Last updated {new Date().toLocaleFormat('%Y/%m/%d %H:%M:%S')}
; -- cgit v1.2.3