summaryrefslogtreecommitdiffabout
path: root/htdocs/sources.chtml
authorMichael Krelin <hacker@klever.net>2005-04-03 11:49:01 (UTC)
committer Michael Krelin <hacker@klever.net>2005-04-03 11:49:01 (UTC)
commitd3e8a3f68b62668af9bc992e94dfb3c822d270dc (patch) (side-by-side diff)
tree87a5f43f5075dcfc0c0033a4ca50eb990d498e70 /htdocs/sources.chtml
parent85471d7c2c74035399ba7047f409fe6248e1d6f0 (diff)
downloadsitecing-d3e8a3f68b62668af9bc992e94dfb3c822d270dc.zip
sitecing-d3e8a3f68b62668af9bc992e94dfb3c822d270dc.tar.gz
sitecing-d3e8a3f68b62668af9bc992e94dfb3c822d270dc.tar.bz2
made use of pragma main
Diffstat (limited to 'htdocs/sources.chtml') (more/less context) (ignore whitespace changes)
-rw-r--r--htdocs/sources.chtml3
1 files changed, 2 insertions, 1 deletions
diff --git a/htdocs/sources.chtml b/htdocs/sources.chtml
index 8c0c701..268b0e0 100644
--- a/htdocs/sources.chtml
+++ b/htdocs/sources.chtml
@@ -1,27 +1,28 @@
-% html(); return; /* vim:set ft=sitecing: */
+% /* vim:set ft=sitecing: */
%%derive layout = "/ancestry/layout.chtml";
%%derive sources = "/ancestry/sources.chtml";
+%%pragma main=page
<%impl>
#include <sitecing/sitecing_util.h>
</%impl>
<%constructor>
b_strict = false;
PN_PREV("/quickref/metasyntax","syntax","meta syntax");
</%constructor>
<%codemethod string title() %>
return "runtime exceptions handling";
</%codemethod>
<%method void content() %>
<h1>browse this site sources</h1>
<ul class="sourcebrowser">
% for(int n=0;n<source_files_count;n++) {
% sourcefile_t& sf = source_files[n];
% if(!sf.name) { /* the beginning or the end of the directory */
% if(sf.dir) { /* the beginning */
<li class="dir"><% sf.dir %>/<ul class="dir">
% }else{ /* the end */
</ul></li>
% }
% }else{
<li class="file"><a href="/view/<% sf.dir %>/<% sf.name %>" title="<% sf.desc %>" target="insert"><% sf.name %></a></li>