sunset.nimf 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. #? stdtmpl
  2. #proc sunsetTemplate*(current, ticker, content: string,
  3. # tabs: openArray[array[0..1, string]]): string =
  4. # result = ""
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  7. <head>
  8. <title>Nimrod Programming System</title>
  9. <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
  10. <link rel="stylesheet" type="text/css" href="style/style.css" />
  11. </head>
  12. <body>
  13. <div id="main">
  14. <div id="links">
  15. <!-- **** INSERT LINKS HERE **** -->
  16. </div>
  17. <div id="logo"><h1>Nimrod Programming System</h1></div>
  18. <div id="content">
  19. <div id="menu">
  20. <ul>
  21. #for item in items(tabs):
  22. #var name = item[0]
  23. #var t = item[1]
  24. #if t == current:
  25. <li><a id="selected" href="${t}.html" title = "Nimrod - $name">$name</a></li>
  26. #else:
  27. <li><a href="${t}.html" title = "Nimrod - $name">$name</a></li>
  28. #end if
  29. #end for
  30. </ul>
  31. </div>
  32. <div id="column1">
  33. <div class="sidebaritem">
  34. <div class="sbihead">
  35. <h1>latest news</h1>
  36. </div>
  37. <div class="sbicontent">
  38. $ticker
  39. </div>
  40. </div>
  41. <div class="sidebaritem">
  42. <div class="sbihead">
  43. <h1>additional links</h1>
  44. </div>
  45. <div class="sbilinks">
  46. <!-- **** INSERT ADDITIONAL LINKS HERE **** -->
  47. <ul>
  48. <li><a class="reference" href="http://llvm.org">LLVM</a></li>
  49. <li><a class="reference" href="http://gcc.gnu.org">GCC</a></li>
  50. </ul>
  51. </div>
  52. </div>
  53. </div>
  54. <div id="column2">
  55. $content
  56. </div>
  57. </div>
  58. <div id="footer">
  59. copyright &copy; 2008 Andreas Rumpf | Last update: ${getDateStr()}
  60. | <a class="reference" href="http://validator.w3.org/check?uri=referer">XHTML 1.1</a>
  61. | <a class="reference" href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
  62. | <a class="reference" href="http://www.dcarter.co.uk">design by dcarter</a>
  63. </div>
  64. </div>
  65. </body>
  66. </html>