datei=index.html chprg=header.def|!|def2html - test page|!|php, html, def2html, manfred, larcher, grufo|!|def2html is a small php tool to generate html files from simple def-files like this one|!|php, html, def2html, manfred, larcher, grufo|!|def2html version 0.1a by Manfred Larcher|!|

Copyright (C) 2004 Manfred Larcher

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

DESCRIPTION
def2html is a small and simple to use php program for generating html files.
def2html looks for one or more patterns and replaces them by the desired text.
the generated text will be written into the file indicated by 'datei=filename' at the beginning of the def file.

This is a simple example starting with the header, the body is included as plain
html text in the .def file and the footer.def closes all, filling in the date of writing.
/def/index.def is the main definition of this page
/dev/lib/header.def is the header of this page with keywords...
/dev/lib/footer.def is the footer which closes the html part

USAGE
Start def2html like that: http://www.yourhomepage.org/def2html.php
only the changed files will be processed.
If you use it like that:
http://www.yourhomepage.org/def2html.php?force=yes
every .def file will be processed!

The directory structure should look like that:
/def
/def/lib

TODO
Features that will be added in upcoming releases:
1. Documentation
2. MYSQL and/or PostgreSQL support
3. Features you suggest

chprg=footer.def