
The PHP script 'convert.php' (which includes also 'class.Template.php',
'class.Parser.php' and 'class.Render.php') is used to convert the
templates of an existing web_app application for use with the new
version of the framework.

What it does is this:
- Removes the elements <Header> and <Footer> from the <Repeat>
  element and puts their contents respectivly before and after 
  the <Repeat> element.
- Replaces 'not-equal operator' '<>' by '!='.
- Makes all the tags lowercase.
- Makes all the names of the attributes lowercase.
- Replaces: <input type="checkbox" {{checked}}>
  by  <input type="checkbox" checked="{{checked}}">
  and <option {{selected}}> by <option selected="{{selected}}">

It can be used like this:
    $ ./convert.sh ../templates/*.html
    $ find ../templates/ -name '*.html' | xargs ./convert.sh

After a template is converted, it is saved with the same name,
however it is copied first to the backup file filename.orig
(e.g. page.html.orig).

After making sure that all the templates are converted successfully,
the backup files can be deleted with the command:
    $ find ../templates/ -name '*.html.orig' -exec rm {} \;

All the backup files can be restored like this:
    $ find ../templates/ -name '*.html' -exec cp {}.orig {} \;
