<?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>Comments on: LessCss for CFML Developers</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Wed, 01 May 2013 15:28:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Using Less CSS with ColdFusion &#171; The Web Applications Blog</title>
		<link>http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/comment-page-1/#comment-217890</link>
		<dc:creator>Using Less CSS with ColdFusion &#171; The Web Applications Blog</dc:creator>
		<pubDate>Tue, 17 Aug 2010 13:22:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1082#comment-217890</guid>
		<description>[...] CSS was originally implemented in Ruby, and Barney Boisvert has already blogged about using the Ruby implementation in ColdFusion in the past.  However the author of Less CSS is now working on a JavaScript version, less.js. This [...]</description>
		<content:encoded><![CDATA[<p>[...] CSS was originally implemented in Ruby, and Barney Boisvert has already blogged about using the Ruby implementation in ColdFusion in the past.  However the author of Less CSS is now working on a JavaScript version, less.js. This [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Ho</title>
		<link>http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/comment-page-1/#comment-190745</link>
		<dc:creator>Henry Ho</dc:creator>
		<pubDate>Wed, 09 Sep 2009 19:55:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1082#comment-190745</guid>
		<description>Oops, I guess I misunderstood the div 2 operation in LessCss.

Maybe use a simple &lt;cfcache&gt; tag to eliminate penalty of CF processing on every stylesheet request?

Nesting is hard, yes, but my colleague and I don&#039;t like it very much. 

Mixins can be achieved with &amp;ltcfsaveoutput&gt;.

CFML is a hammer. :)</description>
		<content:encoded><![CDATA[<p>Oops, I guess I misunderstood the div 2 operation in LessCss.</p>
<p>Maybe use a simple &lt;cfcache&gt; tag to eliminate penalty of CF processing on every stylesheet request?</p>
<p>Nesting is hard, yes, but my colleague and I don't like it very much. </p>
<p>Mixins can be achieved with &amp;ltcfsaveoutput&gt;.</p>
<p>CFML is a hammer. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barneyb</title>
		<link>http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/comment-page-1/#comment-190744</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Wed, 09 Sep 2009 19:35:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1082#comment-190744</guid>
		<description>@Henry

Yeah, you can certainly do it that way, but then you incur the penalty of CF processing on every stylesheet request, which can place significant extra load on your server.  However, your color manipulation is incorrect, you don&#039;t want to divide the whole number by 2, you want to divide each color segment (two-digit pair) by two, and then stitch the results back together.

Doing nesting and inclusion are also problematic with simple output tricks.  They really require a full language parser so you can manipulate the AST.

All that said, you could certainly package the couple lines of Ruby up into a custom tag to run your tag body through the interpreter and output it, so a &lt;less:css&gt; tag is really reasonable.</description>
		<content:encoded><![CDATA[<p>@Henry</p>
<p>Yeah, you can certainly do it that way, but then you incur the penalty of CF processing on every stylesheet request, which can place significant extra load on your server.  However, your color manipulation is incorrect, you don't want to divide the whole number by 2, you want to divide each color segment (two-digit pair) by two, and then stitch the results back together.</p>
<p>Doing nesting and inclusion are also problematic with simple output tricks.  They really require a full language parser so you can manipulate the AST.</p>
<p>All that said, you could certainly package the couple lines of Ruby up into a custom tag to run your tag body through the interpreter and output it, so a &lt;less:css&gt; tag is really reasonable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Ho</title>
		<link>http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/comment-page-1/#comment-190742</link>
		<dc:creator>Henry Ho</dc:creator>
		<pubDate>Wed, 09 Sep 2009 19:18:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1082#comment-190742</guid>
		<description>and... add this to the 1st example... sorry.

&lt;cfset color = InputBaseN(&quot;fdd&quot;,16)&gt;</description>
		<content:encoded><![CDATA[<p>and&#8230; add this to the 1st example&#8230; sorry.</p>
<p>&lt;cfset color = InputBaseN("fdd",16)&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Ho</title>
		<link>http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/comment-page-1/#comment-190741</link>
		<dc:creator>Henry Ho</dc:creator>
		<pubDate>Wed, 09 Sep 2009 19:12:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1082#comment-190741</guid>
		<description>oh... the tags are stripped off.
Just imagine there were &lt;cfoutput&gt; tag on the first example.

And there were &lt;less:css&gt; on the last example.</description>
		<content:encoded><![CDATA[<p>oh&#8230; the tags are stripped off.<br />
Just imagine there were &lt;cfoutput&gt; tag on the first example.</p>
<p>And there were &lt;less:css&gt; on the last example.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henry Ho</title>
		<link>http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/comment-page-1/#comment-190740</link>
		<dc:creator>Henry Ho</dc:creator>
		<pubDate>Wed, 09 Sep 2009 19:10:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1082#comment-190740</guid>
		<description>I was talking with my college who specialized in doing front-end.  We come to a conclusion that most of what LessCss does can be done by CFML just as well, just a Little bit more verbose? :)



##header {
  background-color: #FormatBaseN(color, 16)#;
  color: #FormatBaseN(color / 2, 16)#;
}


Maybe it&#039;ll be a good idea to write a custom tag to do inline LessCss! :)


@color: #fdd;
#header {
  background-color: @color;
  color: @color / 2;
}
</description>
		<content:encoded><![CDATA[<p>I was talking with my college who specialized in doing front-end.  We come to a conclusion that most of what LessCss does can be done by CFML just as well, just a Little bit more verbose? :)</p>
<p>##header {<br />
  background-color: #FormatBaseN(color, 16)#;<br />
  color: #FormatBaseN(color / 2, 16)#;<br />
}</p>
<p>Maybe it'll be a good idea to write a custom tag to do inline LessCss! :)</p>
<p>@color: #fdd;<br />
#header {<br />
  background-color: @color;<br />
  color: @color / 2;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barneyb</title>
		<link>http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/comment-page-1/#comment-190733</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Wed, 09 Sep 2009 17:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1082#comment-190733</guid>
		<description>@Rostislav

Using a servelet filter is definitely a better approach, and you can still use the Ruby LESS engine via the JSR-223 interface to JRuby in exactly the same way.  Obviously you still have to drop JAR, as well as configure the filter, but for JEE-ish applications, it&#039;s a no brainer.  Where I&#039;ve used this, I package UrlRewrite to hand off to a CFM file to do the compilation, mostly because I didn&#039;t want to have to compile my own Java class.</description>
		<content:encoded><![CDATA[<p>@Rostislav</p>
<p>Using a servelet filter is definitely a better approach, and you can still use the Ruby LESS engine via the JSR-223 interface to JRuby in exactly the same way.  Obviously you still have to drop JAR, as well as configure the filter, but for JEE-ish applications, it's a no brainer.  Where I've used this, I package UrlRewrite to hand off to a CFM file to do the compilation, mostly because I didn't want to have to compile my own Java class.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: barneyb</title>
		<link>http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/comment-page-1/#comment-190731</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Wed, 09 Sep 2009 17:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1082#comment-190731</guid>
		<description>@Sebastiaan, @Brian

Yeah, this is a lot of work if all you want is LESS in your CFML app.  But if you&#039;re already integrating Groovy and Ruby into the app, then all you need is lesscss.cfm somewhere to point at.  And this is something that is done per server, so if you&#039;re running several applications on a single CF/Railo/OBD instance, you do this once, and all your apps grow support.</description>
		<content:encoded><![CDATA[<p>@Sebastiaan, @Brian</p>
<p>Yeah, this is a lot of work if all you want is LESS in your CFML app.  But if you're already integrating Groovy and Ruby into the app, then all you need is lesscss.cfm somewhere to point at.  And this is something that is done per server, so if you're running several applications on a single CF/Railo/OBD instance, you do this once, and all your apps grow support.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian FitzGerald</title>
		<link>http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/comment-page-1/#comment-190718</link>
		<dc:creator>Brian FitzGerald</dc:creator>
		<pubDate>Wed, 09 Sep 2009 12:55:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1082#comment-190718</guid>
		<description>I, for one, am really pumped to see LessCss coming closer to the CFML world.  It looks awesome!  I do agree with Sebastian, however, that the amount of installation work does seem disproportionate to the payoff.  Maybe one day we can get this built into CF?  One can dream, can&#039;t he?

Brian</description>
		<content:encoded><![CDATA[<p>I, for one, am really pumped to see LessCss coming closer to the CFML world.  It looks awesome!  I do agree with Sebastian, however, that the amount of installation work does seem disproportionate to the payoff.  Maybe one day we can get this built into CF?  One can dream, can't he?</p>
<p>Brian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastiaan</title>
		<link>http://www.barneyb.com/barneyblog/2009/09/08/lesscss-for-cfml-developers/comment-page-1/#comment-190708</link>
		<dc:creator>Sebastiaan</dc:creator>
		<pubDate>Wed, 09 Sep 2009 09:21:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1082#comment-190708</guid>
		<description>That&#039;s a lot of work for something as simple as a CSS. It would be better to restructure the HTML and CSS or make a CSS per category: font, colour, structure, etc.</description>
		<content:encoded><![CDATA[<p>That's a lot of work for something as simple as a CSS. It would be better to restructure the HTML and CSS or make a CSS per category: font, colour, structure, etc.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
