I finally had enough time away from job stuff to add things to
PageTemplate (seems I’m always griping about too much or not enough
work). The visible changes are small, but the supporting framework has
undergone some major changes to simplify testing and keep my poor
little brain from melting when I look at the code.
I think now it’s time to put together a nice assortment of sample apps
and see how well this thing performs in the real world.
Here’s the download page:
… and here’s the documentation page:
Okay, folks. Have fun with it!
CHANGES FROM 0.2.0
- It works under ruby 1.6 now!
- Experimental support for caching template information to disk.
Use PageTemplate.rb to create output based on template pages and the
code of your program. This package is inspired by Sam Tregar’s
HTML::Template package for Perl. Its main intent is to separate design
and code for CGI programs, but it could be useful in other contexts as
well (Ex: site generation packages).
PageTemplate.rb is distributed under the MIT License.
As a side note: if you are using PageTemplate in your projects, or add
features to your copy, I’d love to hear about it.
Brian Wisti (email@example.com)
- Variable substitution
- If and If/Else structures
- Loops and Loop/Else structures
- Customizable Syntax
- Caching template information for improved performance