Apache-MiniWiki
    
    
  
  
  
view release on metacpan or search on metacpan
MiniWiki.pm view on Meta::CPAN
  return $return;
}
   
# This converts the text into HTML with the help of HTML::FromText.
# See the POD information for HTML::FromText for an explanation of
# these settings.
sub prettify {
  my ($text) = @_;
  return text2html( $text, 
    urls => 1, email => 0, bold => 1,
    underline =>1, paras => 1, bullets => 1, numbers=> 1,
    headings => 1, blockcode => 1, tables => 1,
    title => 1, code => 1
  );
}  
  
sub strip_virtual { $_[0] =~ s/^${vroot}\///i; $_[0] }
# This is the main request handler. It begins by finding out its
# configuration, if it has not before, loads templates and then calls
example/edit,v view on Meta::CPAN
@Writing pages
Writing and creating pages is simple. If you see a page that you wish to change, just press the "Edit" link. You will then receive a page where you can edit the information. When you subsequently press "Submit", having done your changes, the page is ...
Instead of using regular HTML code, all content is written as plain text which is formatted into HTML when viewed. 
The following is true for all pages:
 * The first line on any page will always become a header
 * If you wish to link to other pages, you can write links like this: \[\[Pagename|Description]]. For example, to make a link to the main page (index), you can write: \[\[index|Main page]].
 * You can create *bold* or _underlined_ text by putting * or _ on both sides of a text.
 * Unnumbered lists (like this) is written by putting *, in front of all rows.
 * Numbered lists are written by putting a number (1, 2, 3...) in front of every row.
 * Three dashes or more after each other produces a horizontal line across the page.
If someone creates a link to a page that doesn't exist yet, it will be shown by a small questionmark following the description. By pressing the questionmark, a blank page is received where one can create the page.
@
1.1
log
@Initial revision
@
text
@d11 1
a11 1
 * You can create *bold* och _underlined_ text by putting * or _ on both sides of a text.
@
example/template,v view on Meta::CPAN
   <a href="<TMPL_VAR NAME=vroot>/list">Pages</a>,
   <a href="<TMPL_VAR NAME=vroot>/listlinks">Links</a>,
   <a href="<TMPL_VAR NAME=vroot>/listchanges">Changes</a>,
   <a href="<TMPL_VAR NAME=vroot>/edit">Help</a>,
   <a href="<TMPL_VAR NAME=loglink>">Archive</a>,
   <a href="<TMPL_VAR NAME=vroot>/(newpassword)">Password<sup>1</sup></a>,
   <a href="<TMPL_VAR NAME=editlink>">Edit</a>
 </td>
</tr>
</TABLE>
<br><div align="right"><span style="bgcolor:black; color:white; font-weight:bold">
Last Modified: <TMPL_VAR NAME=lastmod></span></div>
</body></html>
@
1.8
log
@align right
@
text
example/template,v view on Meta::CPAN
@
1.7
log
@align right
@
text
@d58 2
a59 2
<br><span align=right style="bgcolor:black; color:white; font-weight:bold">
Last Modified: <TMPL_VAR NAME=lastmod></span>
@
1.6
log
@align right
@
text
@d58 1
a58 1
<br><span style="align:right; bgcolor:black; color:white; font-weight:bold">
@
1.5
log
@last modified
@
text
@d58 1
a58 1
<br><span style="text-align:right; bgcolor:black; color:white; font-weight:bold">
@
1.4
log
@*** empty log message ***
@
text
@d58 2
@
( run in 0.447 second using v1.01-cache-2.11-cpan-c333fce770f )