Mercurial > dottes
diff dottes.html.tune @ 588:afc031477784
Replace sed substitution with Python templating for HTML and LaTeX output.
author | Jim Hague <jim.hague@acm.org> |
---|---|
date | Wed, 02 Nov 2016 00:21:18 +0000 |
parents | e16c20e63d9c |
children | 60749c792cde |
line wrap: on
line diff
--- a/dottes.html.tune Mon Oct 31 23:55:28 2016 +0000 +++ b/dottes.html.tune Wed Nov 02 00:21:18 2016 +0000 @@ -2,7 +2,7 @@ <html lang="en"> <head> <meta charset="utf-8" /> - <title>Cry Havoc tunes - @TITLE@</title> + <title>Cry Havoc tunes - ${title}</title> <link rel="stylesheet" href="../css/reset.css" /> <link rel="stylesheet" href="../css/text.css" /> <link rel="stylesheet" href="../css/960.css" /> @@ -24,7 +24,7 @@ <div class="dottes-tune-header"> <div class="dottes-tune-header-row"> <div class="dottes-tune-header-left"> - <a class="dottes-tune-icon-link" href="learner-@TUNE@.html"> + <a class="dottes-tune-icon-link" href="learner-${name}.html"> <img class="dottes-tune-table-image" src="../img/learner.png" alt="Learner"> </a> @@ -34,49 +34,49 @@ </a> </div> <div class="dottes-tune-header-middle"> - <h1>@TITLE@</h1> - <h2>@SUBTITLE@</h2> + <h1>${title}</h1> + <h2>${subtitle}</h2> </div> <div class="dottes-tune-header-right"> - <em>@COMPOSER@</em> + <em>${composer}</em> </div> </div> </div> - <img class="dottes-png" src="@TUNE@.png" alt="@TITLE@ dots"> - <div class="dottes-credit-@CREDITVISIBILITY@"> - From @CREDIT@. + <img class="dottes-png" src="${name}.png" alt="${title} dots"> + <div class="dottes-credit-${creditvisibility}"> + From ${credit}. </div> - <div class="dottes-change-@CHANGEVISIBILITY@"> + <div class="dottes-change-${changevisibility}"> Change: <a class="dottes-change-link" - href="@CHANGETUNE@">@CHANGETITLE@</a> + href="${changename}.html">${changetitle}</a> </div> <div class="dottes-tune-footer"> <div class="dottes-tune-footer-row"> <div class="dottes-tune-footer-left"> <ul class="tune-data-list"> <li><a class="dottes-link-tune dottes-pdf" download - href="@TUNE@.pdf">PDF</a></li> + href="${name}.pdf">PDF</a></li> <li><a class="dottes-link-tune dottes-midi" download - href="../@MASTERBOOKE@/@TUNE@.mid">MIDI</a></li> + href="../${masterbooke}/${name}.mid">MIDI</a></li> <li><a class="dottes-link-tune dottes-mp3" download - href="../@MASTERBOOKE@/@TUNE@.mp3">MP3</a></li> + href="../${masterbooke}/${name}.mp3">MP3</a></li> <li><a class="dottes-link-tune dottes-ogg" download - href="../@MASTERBOOKE@/@TUNE@.ogg">OGG</a></li> + href="../${masterbooke}/${name}.ogg">OGG</a></li> <li><a class="dottes-link-tune dottes-abc" download - href="@TUNE@.abc">ABC</a></li> + href="${name}.abc">ABC</a></li> <li><a class="dottes-link-tune dottes-xml" download - href="@TUNE@.xml">XML</a></li> + href="${name}.xml">XML</a></li> </ul> </div> <div class="dottes-tune-footer-centre"> <audio controls> - <source src="../@MASTERBOOKE@/@TUNE@.mp3" type="audio/mpeg" /> - <source src="../@MASTERBOOKE@/@TUNE@.ogg" type="audio/ogg" /> + <source src="../${masterbooke}/${name}.mp3" type="audio/mpeg" /> + <source src="../${masterbooke}/${name}.ogg" type="audio/ogg" /> <object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95"> - <param name="FileName" value="@TUNE@.mp3" /> + <param name="FileName" value="${name}.mp3" /> <param name="autoStart" value="false" /> <param name="autoplay" value="false" /> - <object type="audio/mpeg" data="@TUNE@.mp3"> + <object type="audio/mpeg" data="${name}.mp3"> <param name="controller" value="true" /> <param name="autoplay" value="false" /> </object> @@ -84,7 +84,7 @@ </audio> </div> <div class="dottes-tune-footer-right"> - Last changed @LASTCHANGED@ + Last changed ${lastchanged} </div> </div> </div>