# Sample Wsmake Configuration File # Comments are defined as anything after a '#' for a single line # Copyright 1998,1999 by Michael Brownlow # # Section keywords: Website, Page, SubTagGroup, PageOrder # # Only " can be escaped. So \" will turn into ", but \n stays \n. # ####################################### # Website configuration (1 per config file) Website { name "Mike's Website" # Test of side comments maintainer "Mike (mike@ctelcom.net)" url "http://ctelcom.net/mike/" output_dir "output" # These two are required database_filename "sample.db" # entries for a website # common_subtaggroup "default" common_pageorder "default" lastmod_tagname "`LASTMOD`" wsmake_version_tagname "`WSMAKEVERSION`" wsmake_cvsid_tagname "`WSMAKECVSID`" path_tagname "`FILEPATH`" source_tagname "`FILESOURCE`" output_tagname "`FILEOUTPUT`" header_tagname "`HEADERFILE`" # These two are for CGI footer_tagname "`FOOTERFILE`" # scripts include_tagname "`[%s]`" # %s - [path]filename } ####################################### # Pages (1 or more per config file) # note: items are treated FIFO regarding order during parse process # SubTag has this format: # SubTag "[subtag]" "[value]" # other tags don't need quotations, but they look nice Page { path "index.html" base_dir "source" page_type NORMAL # Note: these are the default, and do not parse YES # need to be specified. SubTag "`TITLE`" "Mike's sample home page for Wsmake" SubTag "`META`" "mike's sample home page for wsmake" SubTag "`EMAIL`" "overriding a subtag" SubTag "`WSMAKEVERSION`" "overrode wsmake version :P" subtaggroup "default" pageorder "home" # pageorder "default" } Page { path "credits.html" base_dir "source" parse INCLUDES_ONLY SubTag "`TITLE`" "Credits page" SubTag "`META`" "credits page" subtaggroup "default" pageorder "credits" # pageorder "default" } Page { path "nothtml.cgi" base_dir "source" page_type CGI parse NO # cgi_header "nothtml-header.html" cgi_footer "nothtml-footer.html" } Page { path "cgiscript.cgi" base_dir "source" page_type CGI cgi_header "cgiscript-header.html" cgi_footer "cgiscript-footer.html" } Page { path "dirtest/sample.html" base_dir "source" page_type NORMAL parse YES } Page { path "noexists.shtml" base_dir "source" page_type NORMAL parse YES } Page { name "header" path "header.html" base_dir "templates" page_type PAGEORDER subtaggroup "default" } Page { name "footer" path "footer.html" base_dir "templates" page_type PAGEORDER pageorder "footercopynotice" } Page { name "headerhome" path "header-home.html" base_dir "templates" page_type PAGEORDER } Page { name "headercredits" path "header-credits.html" base_dir "templates" page_type PAGEORDER } Page { name "headernoparse" path "header-noparse.html" base_dir "templates" page_type PAGEORDER parse NO } Page { name "footercopynotice" path "footer-copynotice.html" base_dir "templates" page_type PAGEORDER } ####################################### # SubTagGroups (0 or more per config file) SubTagGroup { name "default" SubTag "`EMAIL`" "mike@ctelcom.net" SubTag "`EMAILLINK`" "mike@ctelcom.net" SubTag "`BGCOLOR`" "#FFFFFF" } ####################################### # PageOrders (0 or more per config file) PageOrder { name "default" file "header" data file "footer" } PageOrder { name "home" file "headerhome" data } PageOrder { # Another side comment test name "credits" file "headercredits" data } PageOrder { name "footercopynotice" data file "footercopynotice" } PageOrder { # Testing new non-parsed output name "noparse" file "headernoparse" data }