Changeset 29392

Show
Ignore:
Timestamp:
02/01/09 21:39:23 (4 years ago)
Author:
anekos
Message:

個別HTMLの改良

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/javascript/vimperator-plugins/trunk/PMWriter.js

    r28597 r29392  
    108108      } 
    109109 
    110       // プラグイン毎のドキュメント 
    111       io.writeFile( 
    112         io.getFile(outputDir + htmlFilename), 
    113         <html> 
    114           <head> 
    115             <title>{pluginName}</title> 
    116             <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> 
    117           </head> 
    118           <body> 
    119             {template.table(plugin.name, plugin)} 
    120           </body> 
    121         </html>.toString() 
    122       ); 
    123  
    124       // index.html 
     110      let authors; 
    125111      { 
    126         let authors; 
    127112        for each (let a in pluginInfo.author) { 
    128113          let hp = a.@homepage.toString(); 
     
    134119            authors = xml; 
    135120        } 
     121      } 
     122 
     123      // プラグイン毎のドキュメント 
     124      { 
     125        io.writeFile( 
     126          io.getFile(outputDir + htmlFilename), 
     127          <html> 
     128            <head> 
     129              <title>{plugin.info.name.toString()}</title> 
     130              <link rel="stylesheet" href="plugin.css" type="text/css" /> 
     131              <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> 
     132            </head> 
     133            <body> 
     134              <div class="information" id="information"> 
     135                <h1>{plugin.info.name.toString()}</h1> 
     136                <div> 
     137                  <dl> 
     138                    <dt>Description</dt> 
     139                    <dd>{plugin.info.description || '---'}</dd> 
     140                    <dt>Latest version</dt> 
     141                    <dd>{plugin.info.version || '???'}</dd> 
     142                    <dt>Vimperator version</dt> 
     143                    <dd>{(plugin.info.minVersion || '?') + ' - ' + (plugin.info.maxVersion || '?')}</dd> 
     144                    <dt>URL</dt> 
     145                    <dd><a href={CodeRepos + pluginFilename} class="coderepos" target="_blank">{CodeRepos + pluginFilename}</a></dd> 
     146                    <dt>File URL</dt> 
     147                    <dd>{plugin.info.updateURL || '--'}</dd> 
     148                    <dt>Author</dt> 
     149                    <dd>{authors}</dd> 
     150                    <dt>License</dt> 
     151                    <dd>{plugin.info.license || '--'}</dd> 
     152                  </dl> 
     153                </div> 
     154              </div> 
     155              <div class="detail" id="detail">{plugin.info.detail}</div> 
     156            </body> 
     157          </html>.toString() 
     158        ); 
     159      } 
     160 
     161      // index.html 
     162      { 
    136163        indexHtml += <tr class="plugin"> 
    137164          <td class="name">