Sometimes I just like to float ideas and see some discussion. What I may ultimately want is the ability to open things up enough to support alternate formats, even if I don't know what that format might be.
On Wed, Jul 27, 2011 at 11:24 AM, Robert Zeigler <[email protected]> wrote: > ... Why? > > Don't get me wrong... YAML, etc. are great for some things, but... we're > ultimately generating (x)html documents. I like the fact that the templates > are xhtml. Even looking at an example of, eg, haml: > > #profile > .left.column > #date= print_date > #address= current_user.address > .right.column > #email= current_user.email > #bio= current_user.bio > > vs. > > <div id="profile"> > <div class="left column"> > <div id="date"><%= print_date %></div> > <div id="address"><%= current_user.address %></div> > </div> > <div class="right column"> > <div id="email"><%= current_user.email %></div> > <div id="bio"><%= current_user.bio %></div> > </div> > </div> > > > The former might be /ok/ for small, single-developer projects, but for > /anything/ working with an html designer, the latter is batter. Aside from > replacing the components and ${} expressions, what you put in is what you get > out. And I like that; it's what I expect from my tools. Whereas the HAML > example has me cringing; I'm sure there are ways to customize, etc. but I > really don't see the value. I frankly find it /less/ readable because at the > end of the day, I don't know what's being output. Maybe it reduces typing, > but then... any decent html editor can auto-complete the html tags for you, > add closing tags, etc. > > If we added it, I would much prefer to see it added as a standalone plugin so > I don't have to add the bloat to my projects if I don't want it. > > Just sayin'. :) > > Robert > > On Jul 27, 2011, at 7/271:14 PM , Howard Lewis Ship wrote: > >> I wonder if there's any interest in an alternate, non-XML template >> format ... something like YAML, HAML or Scalate? It would be super >> easy to implement. Obviously, for 5.4 or later. >> >> Might be fun to take a few pages and component templates and create >> mockups of an alternate format. >> >> -- >> Howard M. Lewis Ship >> >> Creator of Apache Tapestry >> >> The source for Tapestry training, mentoring and support. Contact me to >> learn how I can get you up and productive in Tapestry fast! >> >> (971) 678-5210 >> http://howardlewisship.com >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
