Tuesday, June 29, 2010

[Rails] Re: Referencing a Layout

> Your site shouldn't be doing your
> consumers' layout work.

I don't think that it is. What I'm trying to do is to come up with a
mechanism that will allow the consumers to do their own layout work.

>  Instead, it sshould provide data that your
> consumers can lay out as they please.

That is clearly the preferred approach. However, it is also the most
labor intensive. I see the external layout approach as a lower
quality alternative that might be acceptable in some circumstances.
One of its big advantages is that (but for problematic issue of
reading the layout from the contents of a variable) it is extremely
easy to implement. I just wish that there were some sort of easy work
around other than taking the brute force tact of writing the data to a
temp file and then reading it from there.

Thanks for the input.

... doug

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate