Posted By: Brian Wisti
Date: 2005-04-17 10:27
Summary: PageTemplate 2.0 Released
Project: PageTemplate
An absolutely huge number of changes this time around, driven almost entirely by Greg Millam. Oh, and I should mention that he's officially a PT developer now. That means we'll probably see releases more often than every eight months or so.
Changes? Plenty.
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.
|
|