Ruby's Template Engine for Python

Samuel newsgroups at debain.org
Sat Dec 8 15:40:04 EST 2007


Hi,

Following the masses I was drawn to RoR's website today and I saw the 
following HTML template in one of the screencasts:

------
<body>
 <% form_remote_tag :url      => { :action => :search },
    :update   => :results,
    :complete => visual_effect(:blind_down, 'image')
    :before   => %(Element.show('image'))
    :after    => %(Element.hide('image')) %>
  <%= text_field_tag 'Search' %>
  <%= submit_tag 'Search' %>
 <% end %>
 <img id='image' src='foo.png' />
 <div id='results'>
 </div>
</body>
------

I have to admit that a template engine that integrates with AJAX like 
that looks inherently cool. Is there anything like that for Python, 
optimally a stand-alone library? Django seems to handle this differently, 
from what I can see.

-Samuel



More information about the Python-list mailing list