[ANN]: PageTemplate 2.0

B

Brian Wisti

Hi all,

With the assistance of Greg Millam, we've released PageTemplate 2.0.
PageTemplate is a Ruby package which allows you to utilize text
templates for your Web projects. It is mainly intended for use in a
CGI environment, but has been designed to be useful in a broad range
of similar applications. Additional details can be found at the
PageTemplate home pages:

* http://rubyforge.org/projects/pagetemplate/
* http://coolnamehere.com/products/pagetemplate/

Changes? Plenty.
2.0
Major changes:
Entire code refactored and rewritten.
Parser now iterative
Commands:
Changed: Everything is encapsulated in the PageTemplate class
Changed: If, IfElse, Unless, UnlessElse commands merged
Changed: Loop, LoopElse merged
Changed: else/end logic placed into Commands
Fixed: Loop MetaVariables
Added: ValueCommand supports 'preprocessors'. var variable :processor
Added: 'case' command added: optional in PageTemplate/case.rb
Namespace:
Fixed: false or nil variables previously caused PT to search up.
Added: ability to have 'var.name.name2' variable access.
Parser:
Changed: Syntax::Glossary became SyntaxGlossary
Changed: Syntax::parser became just Parser
Changed: Parser is now primarily a compiler instead of a template object.
Changed: else/end logic placed into Commands instead of parser.
Changed: Iterative process should be faster
Removed: Use of a disk cache when 'use_cache' is true
Added: Ability to compile files without setting PageTemplate's
current @commands to the result.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,602
Members
45,185
Latest member
GluceaReviews

Latest Threads

Top