home *** CD-ROM | disk | FTP | other *** search
/ linuxmafia.com 2016 / linuxmafia.com.tar / linuxmafia.com / smaug / design-and-implementations-of-smaug next >
Text File  |  2012-03-17  |  2KB  |  24 lines

  1. http://web.archive.org/web/20030513201316/http://sourceforge.net/docman/display_doc.php?docid=9549&group_id=13487
  2. This page had 
  3. Title:  Design and Implementation of SMAUG
  4. Description:  Description: This describes the way you modify files for the 
  5.   SMAUG web site.
  6.  
  7.  
  8.  
  9. Smaug Templates
  10.  
  11. After much fighting trying to keep page design synchronized between the various pages on the SMAUG web site, some radical redesign was needed. To this end, the new template-based design was created.
  12. The idea behind the templates is relatively simple. Each .html file on the site is basically an exact copy of the template file with only one line changed. These files then include a .sub file with the actual body of the document.
  13.  
  14. If you are modifying the contents of a document (or creating a new document), the actual content will be in the .sub file, and the .html file will #include it.
  15.  
  16. If you are trying to modify the design, start by modifying template.html. Once you have made your changes, you should copy template.html over all the other .html files. Finally, you should then modify the #include virtual directive in each .html file to include the correct .sub file for that page.
  17.  
  18. As a final reminder, do NOT edit ANY .html file other than template.html unless you are correcting the #include to point to a different .sub file. If you edit the .html files, they will end up out of sync with each other, and it will be a mess making them the same again.
  19.  
  20. That's all for me for now.
  21.  
  22. David A. Gatwood
  23. Web Geek
  24.