summaryrefslogtreecommitdiffabout
path: root/htdocs/ancestry
Unidiff
Diffstat (limited to 'htdocs/ancestry') (more/less context) (ignore whitespace changes)
-rw-r--r--htdocs/ancestry/layout.chtml4
-rw-r--r--htdocs/ancestry/sources.chtml4
2 files changed, 6 insertions, 2 deletions
diff --git a/htdocs/ancestry/layout.chtml b/htdocs/ancestry/layout.chtml
index df34ad7..4551d04 100644
--- a/htdocs/ancestry/layout.chtml
+++ b/htdocs/ancestry/layout.chtml
@@ -1,69 +1,69 @@
1% html(); return; /* vim:set ft=sitecing: */ 1% html(); return; /* vim:set ft=sitecing: */
2%%derive page = "/ancestry/page.chtml"; 2%%derive page = "/ancestry/page.chtml";
3<%decl> 3<%decl>
4 #define PN_PREV(h,d,t) urlPrev=h; descPrev=d; titlePrev=t; 4 #define PN_PREV(h,d,t) urlPrev=h; descPrev=d; titlePrev=t;
5 #define PN_NEXT(h,d,t) urlNext=h; descNext=d; titleNext=t; 5 #define PN_NEXT(h,d,t) urlNext=h; descNext=d; titleNext=t;
6</%decl> 6</%decl>
7%%impl #include <sitecing/util.h> 7%%impl #include <sitecing/util.h>
8%%impl #include "acconfig.h" 8%%impl #include "acconfig.h"
9%%var bool b_svn = false; 9%%var bool b_svn = false;
10%%var std::string urlPrev; 10%%var std::string urlPrev;
11%%var std::string descPrev; 11%%var std::string descPrev;
12%%var std::string titlePrev; 12%%var std::string titlePrev;
13%%var std::string urlNext; 13%%var std::string urlNext;
14%%var std::string descNext; 14%%var std::string descNext;
15%%var std::string titleNext; 15%%var std::string titleNext;
16<%constructor> 16<%constructor>
17 if(strstr(PACKAGE_STRING,"svn")) 17 if(strstr(PACKAGE_STRING,"svn"))
18 b_svn = true; 18 b_svn = true;
19</%constructor> 19</%constructor>
20<%method void prevnext() %> 20<%method void prevnext() %>
21% if(urlPrev.empty() && urlNext.empty()) return; 21% if(urlPrev.empty() && urlNext.empty()) return;
22% if(descPrev.empty() && descNext.empty()) return; 22% if(descPrev.empty() && descNext.empty()) return;
23 <div class="prevnext"> 23 <div class="prevnext">
24% if(!(urlPrev.empty() || descPrev.empty())) { 24% if(!(urlPrev.empty() || descPrev.empty())) {
25 <a class="prevnext-prev" href="<% urlPrev %>" title="<% sitecing::html_escape(titlePrev.empty()?descPrev:titlePrev) %>"><% sitecing::html_escape(descPrev) %></a> 25 <a class="prevnext-prev" href="<% urlPrev %>" title="<% sitecing::html_escape(titlePrev.empty()?descPrev:titlePrev) %>">&#9668;&nbsp;&nbsp;<% sitecing::html_escape(descPrev) %></a>
26% } 26% }
27% if(!(urlNext.empty() || descNext.empty())) { 27% if(!(urlNext.empty() || descNext.empty())) {
28 <a class="prevnext-next" href="<% urlNext %>" title="<% sitecing::html_escape(titleNext.empty()?descNext:titleNext) %>"><% sitecing::html_escape(descNext) %></a> 28 <a class="prevnext-next" href="<% urlNext %>" title="<% sitecing::html_escape(titleNext.empty()?descNext:titleNext) %>"><% sitecing::html_escape(descNext) %>&nbsp;&nbsp;&#9658;</a>
29% } 29% }
30 </div> 30 </div>
31</%method> 31</%method>
32<%method void body() %> 32<%method void body() %>
33 <div id="content"> 33 <div id="content">
34 <%code> 34 <%code>
35 if(!access(WEB_RUN_ROOT "/conf/banner_top",R_OK)) { 35 if(!access(WEB_RUN_ROOT "/conf/banner_top",R_OK)) {
36 pass_file_through(WEB_RUN_ROOT "/conf/banner_top"); 36 pass_file_through(WEB_RUN_ROOT "/conf/banner_top");
37 } 37 }
38 prevnext(); 38 prevnext();
39 content(); 39 content();
40 if(b_strict && !access(WEB_RUN_ROOT "/conf/banner_bottom",R_OK)) { 40 if(b_strict && !access(WEB_RUN_ROOT "/conf/banner_bottom",R_OK)) {
41 pass_file_through(WEB_RUN_ROOT "/conf/banner_bottom"); 41 pass_file_through(WEB_RUN_ROOT "/conf/banner_bottom");
42 } 42 }
43 </%code> 43 </%code>
44 </div> 44 </div>
45 <div id="sidepanel"> 45 <div id="sidepanel">
46% sidepanel(); 46% sidepanel();
47 </div> 47 </div>
48</%method> 48</%method>
49<%method void content() %> 49<%method void content() %>
50</%method> 50</%method>
51<%method void sidepanel() %> 51<%method void sidepanel() %>
52 <h1><% PACKAGE_STRING %></h1> 52 <h1><% PACKAGE_STRING %></h1>
53% if(b_svn) { 53% if(b_svn) {
54 <h2>The site is running source from the source repository which may differ 54 <h2>The site is running source from the source repository which may differ
55 from the one available for download. You can check it out from the <a 55 from the one available for download. You can check it out from the <a
56 href="http://kin.klever.net/sitecing/repository">source repository</a>.</h2> 56 href="http://kin.klever.net/sitecing/repository">source repository</a>.</h2>
57% } 57% }
58% /* thank MSIE for this awful formatting */ 58% /* thank MSIE for this awful formatting */
59 <ul><li><a href="/" title="introduction to site-C-ing">overview</a><ul><li><a href="/simple" title="building a really simple page">simple page</a></li></ul></li><li><a href="/exceptions/" title="exceptions handling">exceptions</a><ul><li><a href="/exceptions/preprocess" title="preprocessor errors">preprocess</a></li><li><a href="/exceptions/compile" title="compiler errors">compile-time</a></li><li><a href="/exceptions/runtime" title="runtime exceptions">runtime</a></li></ul></li><li><a href="/quickref/" title="quick reference">reference</a><ul><li><a href="/quickref/metasyntax" title="meta syntax">syntax</a></li></ul></li><li><a href="/sources" title="browse this site source files">sources</a></li></ul> 59 <ul><li><a href="/" title="introduction to site-C-ing">overview</a><ul><li><a href="/simple" title="building a really simple page">simple page</a></li></ul></li><li><a href="/exceptions/" title="exceptions handling">exceptions</a><ul><li><a href="/exceptions/preprocess" title="preprocessor errors">preprocess</a></li><li><a href="/exceptions/compile" title="compiler errors">compile-time</a></li><li><a href="/exceptions/runtime" title="runtime exceptions">runtime</a></li></ul></li><li><a href="/quickref/" title="quick reference">reference</a><ul><li><a href="/quickref/metasyntax" title="meta syntax">syntax</a></li></ul></li><li><a href="/sources" title="browse this site source files">sources</a></li></ul>
60 <%code> 60 <%code>
61 if(!access(WEB_RUN_ROOT "/conf/banner_side",R_OK)) { 61 if(!access(WEB_RUN_ROOT "/conf/banner_side",R_OK)) {
62 pass_file_through(WEB_RUN_ROOT "/conf/banner_side"); 62 pass_file_through(WEB_RUN_ROOT "/conf/banner_side");
63 } 63 }
64 </%code> 64 </%code>
65 <ul><li><a href="http://kin.klever.net/sitecing/" title="main site-C-ing page">site-C-ing</a></li><li><a href="http://kin.klever.net/sitecing/sources" title="site-C-ing download page">downloads</a></li></ul> 65 <ul><li><a href="http://kin.klever.net/sitecing/" title="main site-C-ing page">site-C-ing</a></li><li><a href="http://kin.klever.net/sitecing/sources" title="site-C-ing download page">downloads</a></li></ul>
66 <div class="copyright"> 66 <div class="copyright">
67 &copy; <a href="http://www.klever.net/">Klever Group</a> 67 &copy; <a href="http://www.klever.net/">Klever Group</a>
68 </div> 68 </div>
69</%method> 69</%method>
diff --git a/htdocs/ancestry/sources.chtml b/htdocs/ancestry/sources.chtml
index 35ced64..1d9fcc9 100644
--- a/htdocs/ancestry/sources.chtml
+++ b/htdocs/ancestry/sources.chtml
@@ -1,78 +1,82 @@
1<%decl> 1<%decl>
2 typedef struct { 2 typedef struct {
3 const char *dir; 3 const char *dir;
4 const char *name; 4 const char *name;
5 const char *desc; 5 const char *desc;
6 } sourcefile_t; 6 } sourcefile_t;
7 extern sourcefile_t source_files[]; 7 extern sourcefile_t source_files[];
8 extern int source_files_count; 8 extern int source_files_count;
9</%decl> 9</%decl>
10<%impl> 10<%impl>
11 sourcefile_t source_files[] = { 11 sourcefile_t source_files[] = {
12 { "", 0, "the root" }, 12 { "", 0, "the root" },
13 { "", "configure.ac", "main configuration file" }, 13 { "", "configure.ac", "main configuration file" },
14 { "", "acinclude.m4", "autoconf macros" }, 14 { "", "acinclude.m4", "autoconf macros" },
15 { "", "autogen.sh", "shell script for building out of source repository" }, 15 { "", "autogen.sh", "shell script for building out of source repository" },
16 { "", "Makefile.am", "automake makefile template" }, 16 { "", "Makefile.am", "automake makefile template" },
17 { "", "NEWS.xml", "news since the last release (if any)" }, 17 { "", "NEWS.xml", "news since the last release (if any)" },
18 { "", "NEWS.xsl", "the styleshhet to make a plaintext version of NEWS.xml" }, 18 { "", "NEWS.xsl", "the styleshhet to make a plaintext version of NEWS.xml" },
19 { "", "COPYING", "copyright notice" }, 19 { "", "COPYING", "copyright notice" },
20 { "", "AUTHORS", "Klever dissected" }, 20 { "", "AUTHORS", "Klever dissected" },
21 { 0, 0, 0 }, 21 { 0, 0, 0 },
22 { "bin", 0, "various scripts" }, 22 { "bin", 0, "various scripts" },
23 { "bin", "build.in", "the template of the script used to precompile the code" }, 23 { "bin", "build.in", "the template of the script used to precompile the code" },
24 { "bin", "run.in", "the template of the script used to start fastcgi server" }, 24 { "bin", "run.in", "the template of the script used to start fastcgi server" },
25 { 0, 0, 0 }, 25 { 0, 0, 0 },
26 { "conf", 0, "configuration files" }, 26 { "conf", 0, "configuration files" },
27 { "conf", "dudki.conf.in", "the template for the dudki daemon configuration file" }, 27 { "conf", "dudki.conf.in", "the template for the dudki daemon configuration file" },
28 { "conf", "httpd.conf.in", "the template for the apache configuration" }, 28 { "conf", "httpd.conf.in", "the template for the apache configuration" },
29 { "conf", "sitecing.conf.in", "the template for the site-C-ing configuration" }, 29 { "conf", "sitecing.conf.in", "the template for the site-C-ing configuration" },
30 { 0, 0, 0 }, 30 { 0, 0, 0 },
31 { "htdocs", 0, "the source files" }, 31 { "htdocs", 0, "the source files" },
32 { "htdocs", ".htaccess", "apache access-control file" }, 32 { "htdocs", ".htaccess", "apache access-control file" },
33 { "htdocs", "index.chtml", "the introduction" }, 33 { "htdocs", "index.chtml", "the introduction" },
34 { "htdocs", "sources.chtml", "the source browser" }, 34 { "htdocs", "sources.chtml", "the source browser" },
35 { "htdocs", "style.css", "the CSS style sheet" }, 35 { "htdocs", "style.css", "the CSS style sheet" },
36 { "htdocs", "view.chtml", "the source viewer" }, 36 { "htdocs", "view.chtml", "the source viewer" },
37 { "htdocs/examples", 0, "examples" }, 37 { "htdocs/examples", 0, "examples" },
38 { "htdocs/examples", "calendar.chtml", "really simple page" }, 38 { "htdocs/examples", "calendar.chtml", "really simple page" },
39 { 0,0,0 }, 39 { 0,0,0 },
40 { "htdocs/exceptions", 0, "exceptions handling overview" }, 40 { "htdocs/exceptions", 0, "exceptions handling overview" },
41 { "htdocs/exceptions", "index.chtml", "the overview" }, 41 { "htdocs/exceptions", "index.chtml", "the overview" },
42 { "htdocs/exceptions", "preprocess.chtml", "preprocessor exceptions" }, 42 { "htdocs/exceptions", "preprocess.chtml", "preprocessor exceptions" },
43 { "htdocs/exceptions", "compile.chtml", "compile-time exceptions" }, 43 { "htdocs/exceptions", "compile.chtml", "compile-time exceptions" },
44 { "htdocs/exceptions", "runtime.chtml", "runtime exceptions" }, 44 { "htdocs/exceptions", "runtime.chtml", "runtime exceptions" },
45 { "htdocs/exceptions/development", 0, "development-mode exceptions samples" }, 45 { "htdocs/exceptions/development", 0, "development-mode exceptions samples" },
46 { "htdocs/exceptions/development", ".htaccess", "apache access control file" }, 46 { "htdocs/exceptions/development", ".htaccess", "apache access control file" },
47 { "htdocs/exceptions/development", ".scrc", "site-C-ing local configuration" }, 47 { "htdocs/exceptions/development", ".scrc", "site-C-ing local configuration" },
48 { "htdocs/exceptions/development", "preprocess.chtml", "the file that can not be preprocessed" }, 48 { "htdocs/exceptions/development", "preprocess.chtml", "the file that can not be preprocessed" },
49 { "htdocs/exceptions/development", "runtime.chtml", "exception thrown at runtime" }, 49 { "htdocs/exceptions/development", "runtime.chtml", "exception thrown at runtime" },
50 { "htdocs/exceptions/development", "compile.chtml", "the file that can not be compiled" }, 50 { "htdocs/exceptions/development", "compile.chtml", "the file that can not be compiled" },
51 { "htdocs/exceptions/development", "erroneous.h", "the file to include for more errors" }, 51 { "htdocs/exceptions/development", "erroneous.h", "the file to include for more errors" },
52 { "htdocs/exceptions/development", "compile.html", "compile-time exception handler output" }, 52 { "htdocs/exceptions/development", "compile.html", "compile-time exception handler output" },
53 { 0,0,0 }, 53 { 0,0,0 },
54 { "htdocs/exceptions/production", 0, "production-mode exceptions samples" }, 54 { "htdocs/exceptions/production", 0, "production-mode exceptions samples" },
55 { "htdocs/exceptions/production", ".htaccess", "apache access control file" }, 55 { "htdocs/exceptions/production", ".htaccess", "apache access control file" },
56 { "htdocs/exceptions/production", ".scrc", "site-C-ing local configuration" }, 56 { "htdocs/exceptions/production", ".scrc", "site-C-ing local configuration" },
57 { "htdocs/exceptions/production", "preprocess.chtml", "the file that can not be preprocessed" }, 57 { "htdocs/exceptions/production", "preprocess.chtml", "the file that can not be preprocessed" },
58 { "htdocs/exceptions/production", "runtime.chtml", "exception thrown at runtime" }, 58 { "htdocs/exceptions/production", "runtime.chtml", "exception thrown at runtime" },
59 { "htdocs/exceptions/production", "compile.chtml", "the file that can not be compiled" }, 59 { "htdocs/exceptions/production", "compile.chtml", "the file that can not be compiled" },
60 { "htdocs/exceptions/production", "erroneous.h", "the file to include for more errors" }, 60 { "htdocs/exceptions/production", "erroneous.h", "the file to include for more errors" },
61 { "htdocs/exceptions/production", "compile.html", "compile-time exception handler output" }, 61 { "htdocs/exceptions/production", "compile.html", "compile-time exception handler output" },
62 { 0,0,0 }, 62 { 0,0,0 },
63 { "htdocs/quickref", 0, "reference documentation" },
64 { "htdocs/quickref", "index.chtml", "the overview" },
65 { "htdocs/quickref", "metasyntax.chtml", "component meta syntax quick reference" },
66 { 0,0,0 },
63 { 0,0,0 }, 67 { 0,0,0 },
64 { "htdocs/handlers", 0, "exception handlers" }, 68 { "htdocs/handlers", 0, "exception handlers" },
65 { "htdocs/handlers", ".htaccess", "apache access-control file" }, 69 { "htdocs/handlers", ".htaccess", "apache access-control file" },
66 { "htdocs/handlers", "exception_dev", "development mode exception handler" }, 70 { "htdocs/handlers", "exception_dev", "development mode exception handler" },
67 { "htdocs/handlers", "exception_prod", "production mode exception handler" }, 71 { "htdocs/handlers", "exception_prod", "production mode exception handler" },
68 { 0,0,0 }, 72 { 0,0,0 },
69 { "htdocs/ancestry", 0, "base components to build the rest upon" }, 73 { "htdocs/ancestry", 0, "base components to build the rest upon" },
70 { "htdocs/ancestry", ".htaccess", "apache access control file" }, 74 { "htdocs/ancestry", ".htaccess", "apache access control file" },
71 { "htdocs/ancestry", "page.chtml", "the xhtml skeleton" }, 75 { "htdocs/ancestry", "page.chtml", "the xhtml skeleton" },
72 { "htdocs/ancestry", "layout.chtml", "the layout for the most pages" }, 76 { "htdocs/ancestry", "layout.chtml", "the layout for the most pages" },
73 { "htdocs/ancestry", "sources.chtml", "the list of files for source browser" }, 77 { "htdocs/ancestry", "sources.chtml", "the list of files for source browser" },
74 { 0,0,0 }, 78 { 0,0,0 },
75 { 0,0,0 } 79 { 0,0,0 }
76 }; 80 };
77 int source_files_count = sizeof(source_files)/sizeof(*source_files); 81 int source_files_count = sizeof(source_files)/sizeof(*source_files);
78</%impl> 82</%impl>