[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

[ANN]: PageTemplate 1.1

Brian Wisti

2/14/2005 6:45:00 AM

Hi all,

I've released PageTemplate 1.1. Now with a new 'include' command, so
you can insert content from external files.

* http://rubyforge.org/projects/pag...
* http://coolnam...products/pag...

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. It is inspired by, yet almost entirely
unlike, the HTML::Template package available for Perl. It has a few
features that I hope folks will find useful:

* Variable substitution
* "if/else" blocks - inserting chunks of content depending on the
existence of a flag variable
* "loop/no" blocks - repeatedly inserting a chunk of content,
using values from a list
* A simple default syntax
* Customizable markup syntax (awkward, but it's there)
* Cache template information to disk to speed up access (experimental!)
* New! The ability to include external files (Added in 1.1)

It also has a few features of its own (otherwise, where's the fun?).

* Customizable markup syntax to simplify integration with your own tools.
* Cache template information to disk to speed up access (experimental!)

I hope folks like it!

Kind Regards,

Brian Wisti
http://coolnam...


1 Answer

Brian Wisti

2/17/2005 1:39:00 AM

0

... and now there's a 1.1.1 release, with a few typographical errors
fixed in the documentation (and a few new ones added, no doubt). I
couldn't justify bumping the number without *something* new, so I
added some helpful infrastructure-type things.

* Now there's a Rakefile instead of a Makefile. Small change, but
I thought it seemed philosophically appropriate
* PageTemplate is now available as a gem file! That will make a
couple of my users happy, since they've only been asking for it since
... when did RubyGems get released? I forget.

Anyways, here's where you can find the project files:

* http://rubyforge.org/frs/?gr...

Enjoy!

Merry Christmas,
Brian Wisti
http://coolnam...



On Sun, 13 Feb 2005 22:44:24 -0800, Brian Wisti <brian.wisti@gmail.com> wrote:
> Hi all,
>
> I've released PageTemplate 1.1. Now with a new 'include' command, so
> you can insert content from external files.
>
> * http://rubyforge.org/projects/pag...
> * http://coolnam...products/pagetemplate/
>
> 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. It is inspired by, yet almost entirely
> unlike, the HTML::Template package available for Perl. It has a few
> features that I hope folks will find useful:
>
> * Variable substitution
> * "if/else" blocks - inserting chunks of content depending on the
> existence of a flag variable
> * "loop/no" blocks - repeatedly inserting a chunk of content,
> using values from a list
> * A simple default syntax
> * Customizable markup syntax (awkward, but it's there)
> * Cache template information to disk to speed up access (experimental!)
> * New! The ability to include external files (Added in 1.1)
>
> It also has a few features of its own (otherwise, where's the fun?).
>
> * Customizable markup syntax to simplify integration with your own tools.
> * Cache template information to disk to speed up access (experimental!)
>
> I hope folks like it!
>
> Kind Regards,
>
> Brian Wisti
> http://coolnam...
>