Re: Looking for HTML templating system

Esteban Manchado Velázquez <[email protected]>
Newsgroups gmane.comp.apache.mod-ruby
Message-ID <20040308113847.GA876@rojo>
On Sun, Mar 07, 2004 at 08:36:53PM -0800, Ruby Baby wrote:
> [...]
> Seems to me, template logic could do a lot with just:
> - if / else 
> - each / times
> - length
> - basic string formatting
> 
> But if you're going to write a whole new mini-language to reduce Ruby
> (or any language) down to these few options, why bother?  Same amount of
> time to teach your designers a mini-language as to just teach them the
> same few methods in Ruby, but using real Ruby instead of some invented
> subset.  But much less useful to have a subset instead of just Ruby. 

   Do you know Mason? It's for Perl, but it seems that someone has implemented
a Ruby version in about a week :-) I don't know if he keeps developing it, but
it's definitely a good start.  It's called Mortar, and its homepage is
http://www.fallingsnow.net/ruby .

   I don't know if it's what you're looking for, but I'm definitely in love
with Mason and Ruby, so Mortar is.... so cool... :-) If you want more
information about Mason, you have publicly available the Mason Book at
http://www.masonbook.com/

   Regards,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.