author | Michael Krelin <hacker@klever.net> | 2005-04-03 11:49:01 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-04-03 11:49:01 (UTC) |
commit | d3e8a3f68b62668af9bc992e94dfb3c822d270dc (patch) (unidiff) | |
tree | 87a5f43f5075dcfc0c0033a4ca50eb990d498e70 /htdocs | |
parent | 85471d7c2c74035399ba7047f409fe6248e1d6f0 (diff) | |
download | sitecing-d3e8a3f68b62668af9bc992e94dfb3c822d270dc.zip sitecing-d3e8a3f68b62668af9bc992e94dfb3c822d270dc.tar.gz sitecing-d3e8a3f68b62668af9bc992e94dfb3c822d270dc.tar.bz2 |
made use of pragma main
-rw-r--r-- | htdocs/ancestry/layout.chtml | 4 | ||||
-rw-r--r-- | htdocs/exceptions/compile.chtml | 3 | ||||
-rw-r--r-- | htdocs/exceptions/index.chtml | 3 | ||||
-rw-r--r-- | htdocs/exceptions/preprocess.chtml | 3 | ||||
-rw-r--r-- | htdocs/exceptions/runtime.chtml | 3 | ||||
-rw-r--r-- | htdocs/index.chtml | 4 | ||||
-rw-r--r-- | htdocs/quickref/index.chtml | 3 | ||||
-rw-r--r-- | htdocs/quickref/metasyntax.chtml | 3 | ||||
-rw-r--r-- | htdocs/simple.chtml | 3 | ||||
-rw-r--r-- | htdocs/sources.chtml | 3 | ||||
-rw-r--r-- | htdocs/view.chtml | 3 |
11 files changed, 22 insertions, 13 deletions
diff --git a/htdocs/ancestry/layout.chtml b/htdocs/ancestry/layout.chtml index 4551d04..64d1cd2 100644 --- a/htdocs/ancestry/layout.chtml +++ b/htdocs/ancestry/layout.chtml | |||
@@ -1,14 +1,14 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | %%derive page = "/ancestry/page.chtml"; /* vim:set ft=sitecing: */ |
2 | %%derive page = "/ancestry/page.chtml"; | 2 | %%pragma main=page |
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; |
diff --git a/htdocs/exceptions/compile.chtml b/htdocs/exceptions/compile.chtml index 68dd034..94bd2e1 100644 --- a/htdocs/exceptions/compile.chtml +++ b/htdocs/exceptions/compile.chtml | |||
@@ -1,14 +1,15 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % /* vim:set ft=sitecing: */ |
2 | %%derive layout = "/ancestry/layout.chtml"; | 2 | %%derive layout = "/ancestry/layout.chtml"; |
3 | %%pragma main=page | ||
3 | <%constructor> | 4 | <%constructor> |
4 | b_strict = false; | 5 | b_strict = false; |
5 | PN_PREV("/exceptions/preprocess","preprocess","preprocessing errors"); | 6 | PN_PREV("/exceptions/preprocess","preprocess","preprocessing errors"); |
6 | PN_NEXT("/exceptions/runtime","runtime","runtime exceptions"); | 7 | PN_NEXT("/exceptions/runtime","runtime","runtime exceptions"); |
7 | </%constructor> | 8 | </%constructor> |
8 | <%codemethod string title() %> | 9 | <%codemethod string title() %> |
9 | return "compile-time exceptions handling"; | 10 | return "compile-time exceptions handling"; |
10 | </%codemethod> | 11 | </%codemethod> |
11 | <%method void content() %> | 12 | <%method void content() %> |
12 | <h1>site-C-ing compile-time exception handling</h1> | 13 | <h1>site-C-ing compile-time exception handling</h1> |
13 | <p> | 14 | <p> |
14 | Similar to <a href="/exceptions/preprocess">preprocessing exceptions</a> | 15 | Similar to <a href="/exceptions/preprocess">preprocessing exceptions</a> |
diff --git a/htdocs/exceptions/index.chtml b/htdocs/exceptions/index.chtml index 6bb2a3c..c700e42 100644 --- a/htdocs/exceptions/index.chtml +++ b/htdocs/exceptions/index.chtml | |||
@@ -1,14 +1,15 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % /* vim:set ft=sitecing: */ |
2 | %%derive layout = "/ancestry/layout.chtml"; | 2 | %%derive layout = "/ancestry/layout.chtml"; |
3 | %%pragma main=page | ||
3 | <%constructor> | 4 | <%constructor> |
4 | PN_PREV("/simple","simple page","building a really simple page"); | 5 | PN_PREV("/simple","simple page","building a really simple page"); |
5 | PN_NEXT("/exceptions/preprocess","preprocess","preprocessing errors"); | 6 | PN_NEXT("/exceptions/preprocess","preprocess","preprocessing errors"); |
6 | </%constructor> | 7 | </%constructor> |
7 | <%codemethod string title() %> | 8 | <%codemethod string title() %> |
8 | return "exceptions handling"; | 9 | return "exceptions handling"; |
9 | </%codemethod> | 10 | </%codemethod> |
10 | <%method void content() %> | 11 | <%method void content() %> |
11 | <h1>site-C-ing exception handling</h1> | 12 | <h1>site-C-ing exception handling</h1> |
12 | <p> | 13 | <p> |
13 | The purpose of this section is to give an overview of the <em>site-C-ing</em> | 14 | The purpose of this section is to give an overview of the <em>site-C-ing</em> |
14 | exception handling mechanism. Before the web visitor can see the page each | 15 | exception handling mechanism. Before the web visitor can see the page each |
diff --git a/htdocs/exceptions/preprocess.chtml b/htdocs/exceptions/preprocess.chtml index 88b8741..e42b102 100644 --- a/htdocs/exceptions/preprocess.chtml +++ b/htdocs/exceptions/preprocess.chtml | |||
@@ -1,14 +1,15 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % /* vim:set ft=sitecing: */ |
2 | %%derive layout = "/ancestry/layout.chtml"; | 2 | %%derive layout = "/ancestry/layout.chtml"; |
3 | %%pragma main=page | ||
3 | <%constructor> | 4 | <%constructor> |
4 | b_strict = false; | 5 | b_strict = false; |
5 | PN_PREV("/exceptions","exceptions","exception handling overview"); | 6 | PN_PREV("/exceptions","exceptions","exception handling overview"); |
6 | PN_NEXT("/exceptions/compile","compile-time","compile-time errors"); | 7 | PN_NEXT("/exceptions/compile","compile-time","compile-time errors"); |
7 | </%constructor> | 8 | </%constructor> |
8 | <%codemethod string title() %> | 9 | <%codemethod string title() %> |
9 | return "preprocessor exceptions handling"; | 10 | return "preprocessor exceptions handling"; |
10 | </%codemethod> | 11 | </%codemethod> |
11 | <%method void content() %> | 12 | <%method void content() %> |
12 | <h1>site-C-ing preprocessor exception handling</h1> | 13 | <h1>site-C-ing preprocessor exception handling</h1> |
13 | <p> | 14 | <p> |
14 | It was one of those days when you just can't type right and can't think of | 15 | It was one of those days when you just can't type right and can't think of |
diff --git a/htdocs/exceptions/runtime.chtml b/htdocs/exceptions/runtime.chtml index 1fcd80f..989e89f 100644 --- a/htdocs/exceptions/runtime.chtml +++ b/htdocs/exceptions/runtime.chtml | |||
@@ -1,14 +1,15 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % /* vim:set ft=sitecing: */ |
2 | %%derive layout = "/ancestry/layout.chtml"; | 2 | %%derive layout = "/ancestry/layout.chtml"; |
3 | %%pragma main=page | ||
3 | <%constructor> | 4 | <%constructor> |
4 | b_strict = false; | 5 | b_strict = false; |
5 | PN_PREV("/exceptions/compile","compile-time","compile-time errors"); | 6 | PN_PREV("/exceptions/compile","compile-time","compile-time errors"); |
6 | PN_NEXT("/quickref/","quick reference","quick reference"); | 7 | PN_NEXT("/quickref/","quick reference","quick reference"); |
7 | </%constructor> | 8 | </%constructor> |
8 | <%codemethod string title() %> | 9 | <%codemethod string title() %> |
9 | return "runtime exceptions handling"; | 10 | return "runtime exceptions handling"; |
10 | </%codemethod> | 11 | </%codemethod> |
11 | <%method void content() %> | 12 | <%method void content() %> |
12 | <h1>site-C-ing runtime exception handling</h1> | 13 | <h1>site-C-ing runtime exception handling</h1> |
13 | <p> | 14 | <p> |
14 | The component may throw an exception while executing and the | 15 | The component may throw an exception while executing and the |
diff --git a/htdocs/index.chtml b/htdocs/index.chtml index 20d34c2..76d6d7e 100644 --- a/htdocs/index.chtml +++ b/htdocs/index.chtml | |||
@@ -1,14 +1,14 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | %%derive layout = "/ancestry/layout.chtml"; /* vim:set ft=sitecing: */ |
2 | %%derive layout = "/ancestry/layout.chtml"; | 2 | %%pragma main=page |
3 | <%constructor> | 3 | <%constructor> |
4 | PN_NEXT("/simple","simple page","building a really simple page"); | 4 | PN_NEXT("/simple","simple page","building a really simple page"); |
5 | </%constructor> | 5 | </%constructor> |
6 | <%codemethod string title() %> | 6 | <%codemethod string title() %> |
7 | return "introduction"; | 7 | return "introduction"; |
8 | </%codemethod> | 8 | </%codemethod> |
9 | <%method void content() %> | 9 | <%method void content() %> |
10 | <h1>introduction to site-C-ing</h1> | 10 | <h1>introduction to site-C-ing</h1> |
11 | <p> | 11 | <p> |
12 | This is a sample site, which is supposed to demonstrate <em>site-C-ing</em> | 12 | This is a sample site, which is supposed to demonstrate <em>site-C-ing</em> |
13 | features. Since the <em>site-C-ing</em> is still at the early stages of | 13 | features. Since the <em>site-C-ing</em> is still at the early stages of |
14 | development or rather proof of concept, this site is also far from being | 14 | development or rather proof of concept, this site is also far from being |
diff --git a/htdocs/quickref/index.chtml b/htdocs/quickref/index.chtml index d139190..5119723 100644 --- a/htdocs/quickref/index.chtml +++ b/htdocs/quickref/index.chtml | |||
@@ -1,14 +1,15 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % /* vim:set ft=sitecing: */ |
2 | %%derive layout = "/ancestry/layout.chtml"; | 2 | %%derive layout = "/ancestry/layout.chtml"; |
3 | %%pragma main=page | ||
3 | <%constructor> | 4 | <%constructor> |
4 | PN_PREV("/exceptions/runtime","runtime","runtime exceptions"); | 5 | PN_PREV("/exceptions/runtime","runtime","runtime exceptions"); |
5 | PN_NEXT("/quickref/metasyntax","syntax","meta syntax"); | 6 | PN_NEXT("/quickref/metasyntax","syntax","meta syntax"); |
6 | </%constructor> | 7 | </%constructor> |
7 | <%codemethod string title() %> | 8 | <%codemethod string title() %> |
8 | return "quick reference"; | 9 | return "quick reference"; |
9 | </%codemethod> | 10 | </%codemethod> |
10 | <%method void content() %> | 11 | <%method void content() %> |
11 | <h1>site-C-ing quick reference</h1> | 12 | <h1>site-C-ing quick reference</h1> |
12 | <p> | 13 | <p> |
13 | I am hoping to put together some quick reference documentation here. For now, | 14 | I am hoping to put together some quick reference documentation here. For now, |
14 | I am adding the <a href="/quickref/metasyntax">component meta-syntax quick | 15 | I am adding the <a href="/quickref/metasyntax">component meta-syntax quick |
diff --git a/htdocs/quickref/metasyntax.chtml b/htdocs/quickref/metasyntax.chtml index 4efc37c..67186f9 100644 --- a/htdocs/quickref/metasyntax.chtml +++ b/htdocs/quickref/metasyntax.chtml | |||
@@ -1,14 +1,15 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % /* vim:set ft=sitecing: */ |
2 | %%derive layout = "/ancestry/layout.chtml"; | 2 | %%derive layout = "/ancestry/layout.chtml"; |
3 | %%pragma main=page | ||
3 | <%constructor> | 4 | <%constructor> |
4 | PN_PREV("/quickref/","quick reference","quick reference"); | 5 | PN_PREV("/quickref/","quick reference","quick reference"); |
5 | PN_NEXT("/sources","sources","source browser"); | 6 | PN_NEXT("/sources","sources","source browser"); |
6 | </%constructor> | 7 | </%constructor> |
7 | <%codemethod string title() %> | 8 | <%codemethod string title() %> |
8 | return "meta syntax quick reference"; | 9 | return "meta syntax quick reference"; |
9 | </%codemethod> | 10 | </%codemethod> |
10 | <%method void content() %> | 11 | <%method void content() %> |
11 | <h1>site-C-ing meta syntax quick reference</h1> | 12 | <h1>site-C-ing meta syntax quick reference</h1> |
12 | 13 | ||
13 | <h2>Table of Contents</h2> | 14 | <h2>Table of Contents</h2> |
14 | 15 | ||
diff --git a/htdocs/simple.chtml b/htdocs/simple.chtml index 845b840..d538b01 100644 --- a/htdocs/simple.chtml +++ b/htdocs/simple.chtml | |||
@@ -1,14 +1,15 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % /* vim:set ft=sitecing: */ |
2 | %%derive layout = "/ancestry/layout.chtml"; | 2 | %%derive layout = "/ancestry/layout.chtml"; |
3 | %%pragma main=page | ||
3 | <%constructor> | 4 | <%constructor> |
4 | b_strict = false; | 5 | b_strict = false; |
5 | PN_PREV("/","overview","introduction to site-C-ing"); | 6 | PN_PREV("/","overview","introduction to site-C-ing"); |
6 | PN_NEXT("/exceptions","exceptions","exception handling overview"); | 7 | PN_NEXT("/exceptions","exceptions","exception handling overview"); |
7 | </%constructor> | 8 | </%constructor> |
8 | <%codemethod string title() %> | 9 | <%codemethod string title() %> |
9 | return "simple page"; | 10 | return "simple page"; |
10 | </%codemethod> | 11 | </%codemethod> |
11 | <%method void content() %> | 12 | <%method void content() %> |
12 | <h1>building a really simple page</h1> | 13 | <h1>building a really simple page</h1> |
13 | <p> | 14 | <p> |
14 | Building a really simple page is really simple. I will not go into much detail | 15 | Building a really simple page is really simple. I will not go into much detail |
diff --git a/htdocs/sources.chtml b/htdocs/sources.chtml index 8c0c701..268b0e0 100644 --- a/htdocs/sources.chtml +++ b/htdocs/sources.chtml | |||
@@ -1,15 +1,16 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % /* vim:set ft=sitecing: */ |
2 | %%derive layout = "/ancestry/layout.chtml"; | 2 | %%derive layout = "/ancestry/layout.chtml"; |
3 | %%derive sources = "/ancestry/sources.chtml"; | 3 | %%derive sources = "/ancestry/sources.chtml"; |
4 | %%pragma main=page | ||
4 | <%impl> | 5 | <%impl> |
5 | #include <sitecing/sitecing_util.h> | 6 | #include <sitecing/sitecing_util.h> |
6 | </%impl> | 7 | </%impl> |
7 | <%constructor> | 8 | <%constructor> |
8 | b_strict = false; | 9 | b_strict = false; |
9 | PN_PREV("/quickref/metasyntax","syntax","meta syntax"); | 10 | PN_PREV("/quickref/metasyntax","syntax","meta syntax"); |
10 | </%constructor> | 11 | </%constructor> |
11 | <%codemethod string title() %> | 12 | <%codemethod string title() %> |
12 | return "runtime exceptions handling"; | 13 | return "runtime exceptions handling"; |
13 | </%codemethod> | 14 | </%codemethod> |
14 | <%method void content() %> | 15 | <%method void content() %> |
15 | <h1>browse this site sources</h1> | 16 | <h1>browse this site sources</h1> |
diff --git a/htdocs/view.chtml b/htdocs/view.chtml index d885330..f729465 100644 --- a/htdocs/view.chtml +++ b/htdocs/view.chtml | |||
@@ -1,15 +1,16 @@ | |||
1 | % html(); return; /* vim:set ft=sitecing: */ | 1 | % /* vim:set ft=sitecing: */ |
2 | %%derive page = "/ancestry/page.chtml"; | 2 | %%derive page = "/ancestry/page.chtml"; |
3 | %%derive sources = "/ancestry/sources.chtml"; | 3 | %%derive sources = "/ancestry/sources.chtml"; |
4 | %%pragma main=page | ||
4 | <%impl> | 5 | <%impl> |
5 | #include <iostream> | 6 | #include <iostream> |
6 | #include <fstream> | 7 | #include <fstream> |
7 | using namespace std; | 8 | using namespace std; |
8 | #include <sitecing/util.h> | 9 | #include <sitecing/util.h> |
9 | #include <sitecing/sitecing_util.h> | 10 | #include <sitecing/sitecing_util.h> |
10 | #include <konforka/exception.h> | 11 | #include <konforka/exception.h> |
11 | #include "acconfig.h" | 12 | #include "acconfig.h" |
12 | </%impl> | 13 | </%impl> |
13 | <%codemethod string title() %> | 14 | <%codemethod string title() %> |
14 | return "introduction"; | 15 | return "introduction"; |
15 | </%codemethod> | 16 | </%codemethod> |