Forum: Ruby on Rails Ruby on Rails on Microtemplates

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Stephen Farrell (Guest)
on 2006-05-13 23:38
(Received via mailing list)
Hi Rails folks,

I've been giving some thought on how something I've been calling
"microtemplates" ( might relate to Rails.
Briefly, microtemplates are a way of specifying HTML templates that is
inspired by microformats. For example, data like this:

{vcard:{fn:"Steve Farrell",url:""}}

could be bound to this template:

<span class="vcard">
  <a class="url fn"></a>

to produce this HTML presentation (which happens to be a valid hcard

<span class="vcard">
  <a class="url fn" href="">Steve Farrell</a>

by applying some simple binding rules.  I've attempted to generalize
this approach into a complete templating solution, including a
BSD-licensed javascript library.  I think this approach could be very
useful in augmenting static web pages with dynamic content, creating
mashups on plain HTML pages, and in lowering the bar for composing and
specializing web views and functions.

I also think it might fit very nicely into Rails.  I've started to draft
some thoughts on that here:

I realize this is unsolicited, but I hope some of you find it
interesting and would like to hear your feedback.


Steve Farrell
kris (Guest)
on 2006-05-16 23:11
I think microformats should be in the Rails core, how are you going to
impliment them, helpers?
This topic is locked and can not be replied to.