|
|
  | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||
Download SSB V1.1 (file: ssb.zip size: 26,107 bytes) SSB builds simple web sites using templates and the rules about how tags within those templates should be replaced.
Default makefile name is 'makefile.ssb' Following is a structure of the makefile:
Tag names in the template, should be places between starting "<!--[" and closing "]-->>" strings. "<!--[title]-->" File names can contain ONLY RELATIVE path to the corresponding input or output directory. Text which contains space, '"', '=', '{', '}' or ':' characters should be placed in the double quotes. Two sequential double quote characters in the text will be replaced by one double quote character. Comments start with "//" The idea is to design a template (or pattern) how your web site should look and then for each page replace the title, body, menu, sub-menu, keywords or similar tags. Here is a sample template (lets call it 'main.htm'): <html> <head> <title>My Small Web Site - <!--[title]--></title> <meta name="Description" content="<!--[description]-->"> <meta name="Classification" content="<!--[keywords]-->"> <meta name="KeyWords" content="<!--[keywords]-->"> </head> <body> <h1><!--[title]--></h1> <!--[body]--> <hr> <!--[menu]--> </body> Now you can describe your site map in the 'makefile.ssb' file: // Makefile for Simple Site Builder InputDir = "c:/MySite/Templates" OutputDir = "c:/MySite/LocalHome" //*** Main Page index.html = template file main.htm { title : text "Home" description : text "My home page" body : file "body.htm" menu : file "menu.htm" } //*** Links Page links.html = template file main.htm { title : text "Links" description : text "My favorite links page" body : file "links.htm" menu : file "menu.htm" } TIPS: ![]() © 1999 dch@iname.com |