<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comentários em: Tutorial: building and styling a Rails app with styled_objects</title>
	<atom:link href="http://www.metaduck.com/2009/10/tutorial-building-and-styling-a-rails-app-with-styled-objects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.metaduck.com/2009/10/tutorial-building-and-styling-a-rails-app-with-styled-objects/</link>
	<description></description>
	<lastBuildDate>Mon, 26 Jul 2010 14:53:12 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Por: Pedro Teixeira</title>
		<link>http://www.metaduck.com/2009/10/tutorial-building-and-styling-a-rails-app-with-styled-objects/comment-page-1/#comment-55</link>
		<dc:creator>Pedro Teixeira</dc:creator>
		<pubDate>Mon, 18 Jan 2010 11:58:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.metaduck.com/?p=88#comment-55</guid>
		<description>Hi Chris,

Thanks, I have also been trying to do this for some time now, and this is mainly work in progress that I have been applying to some of my Rails projects.

There are some edges I would like to clean out, preferably with input from others ;)

Thanks!</description>
		<content:encoded><![CDATA[<p>Hi Chris,</p>
<p>Thanks, I have also been trying to do this for some time now, and this is mainly work in progress that I have been applying to some of my Rails projects.</p>
<p>There are some edges I would like to clean out, preferably with input from others <img src='http://www.metaduck.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Chris Colman</title>
		<link>http://www.metaduck.com/2009/10/tutorial-building-and-styling-a-rails-app-with-styled-objects/comment-page-1/#comment-54</link>
		<dc:creator>Chris Colman</dc:creator>
		<pubDate>Mon, 18 Jan 2010 11:53:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.metaduck.com/?p=88#comment-54</guid>
		<description>I like the concept. A few years ago I really thought I could use CSS to separate layout from &#039;skinning&#039; but that turned out to be majorly incorrect :).

It seems a more sophisticated approach like yours is required to achieve that holy grail.</description>
		<content:encoded><![CDATA[<p>I like the concept. A few years ago I really thought I could use CSS to separate layout from &#8217;skinning&#8217; but that turned out to be majorly incorrect <img src='http://www.metaduck.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>It seems a more sophisticated approach like yours is required to achieve that holy grail.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Pedro Teixeira</title>
		<link>http://www.metaduck.com/2009/10/tutorial-building-and-styling-a-rails-app-with-styled-objects/comment-page-1/#comment-14</link>
		<dc:creator>Pedro Teixeira</dc:creator>
		<pubDate>Sat, 07 Nov 2009 00:54:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.metaduck.com/?p=88#comment-14</guid>
		<description>Hi Mario,

Yes, that is a concern I have: each page having a different URL, rendering another uncached HTTP request...

But my aproach is this:
- you should abstract as much as you can and put the bulk of your CSS onto a global stylesheet. Taking this aproach your 20K seams like a lot for the page-specific CSS...
- you should try and reuse templates and partials as much as possible. Try to use partial layouts, etc.

Also note that if the rendered templates are the same but on a different order, the URL will be the same.

Having said that, the problem you presented is something I have been thinking about. There are some ways to get through it:

- pre-generate a stylesheet containing all the glued stylesheets
- declare stylesheet groups (template groups) that you use can later refer to.

Any ideas?</description>
		<content:encoded><![CDATA[<p>Hi Mario,</p>
<p>Yes, that is a concern I have: each page having a different URL, rendering another uncached HTTP request&#8230;</p>
<p>But my aproach is this:<br />
- you should abstract as much as you can and put the bulk of your CSS onto a global stylesheet. Taking this aproach your 20K seams like a lot for the page-specific CSS&#8230;<br />
- you should try and reuse templates and partials as much as possible. Try to use partial layouts, etc.</p>
<p>Also note that if the rendered templates are the same but on a different order, the URL will be the same.</p>
<p>Having said that, the problem you presented is something I have been thinking about. There are some ways to get through it:</p>
<p>- pre-generate a stylesheet containing all the glued stylesheets<br />
- declare stylesheet groups (template groups) that you use can later refer to.</p>
<p>Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Por: Mario</title>
		<link>http://www.metaduck.com/2009/10/tutorial-building-and-styling-a-rails-app-with-styled-objects/comment-page-1/#comment-13</link>
		<dc:creator>Mario</dc:creator>
		<pubDate>Sat, 07 Nov 2009 00:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.metaduck.com/?p=88#comment-13</guid>
		<description>This is a neat idea, but I don&#039;t know if this plugin will work for everyone from a performance perspective. It seems like it is just generating more HTTP requests and downloading a larger amount of data on the client&#039;s end. 

Let&#039;s say I&#039;m working with a large, complex application, with a 10 &quot;glued&quot; styled_objects (which is fairly conservative, I think). If these are mixed and matched with different page loads, I could easily several dozen versions of my compiled stylsheets. Why would I make my client re-download a new complied stylesheet for every page? If you figure an average 20kb per gziped stylesheet/page. That adds up to a lot of extra overhead.</description>
		<content:encoded><![CDATA[<p>This is a neat idea, but I don&#8217;t know if this plugin will work for everyone from a performance perspective. It seems like it is just generating more HTTP requests and downloading a larger amount of data on the client&#8217;s end. </p>
<p>Let&#8217;s say I&#8217;m working with a large, complex application, with a 10 &#8220;glued&#8221; styled_objects (which is fairly conservative, I think). If these are mixed and matched with different page loads, I could easily several dozen versions of my compiled stylsheets. Why would I make my client re-download a new complied stylesheet for every page? If you figure an average 20kb per gziped stylesheet/page. That adds up to a lot of extra overhead.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
