Forum: Ruby on Rails Ruby on Rails on Microtemplates

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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" (http://microtemplates.org) 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:"http://smackman.com"}}

could be bound to this template:

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

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

<span class="vcard">
  <a class="url fn" href="http://smackman.com">Steve Farrell</a>
</span>

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:
http://microtemplates.org/mediawiki/index.php/Rails

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

Thanks!

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.