% if ( $m->comp_exists ("/comps/$prj/header.msn") ) { <& "/comps/$prj/header.msn", alias => 'main' &> % } else { <& "/comps/header.msn", alias => 'main' &> % }
% if ( $m->comp_exists ("/comps/$prj/left.msn") ) { <& "/comps/$prj/left.msn", place => $place, id => (ref $document ? $document->id : undef) &> % } |
% if ( ref $document ) {
<% $document->name %>% if ( $document->author ) {by <% $document->author %> % }
% if ( $document->body_html ) {
<% $document->body_html %>
% } else {
<% $document->body %>
% }
% if ( $document->source ) {
% my ($a1, $a2) = $document->url ? ('','') : ('','');
<% $a1.$document->source.$a2 %> % } % } |