Re: [web2py] Re: LessCSS -- really interesting CSS compiler
Wouldn't it be nice to manage the lesscss variables (they look much like macros) from inside web2py? That would add just a tiny computational effort on the server. mic 2011/6/27 Massimo Di Pierro massimo.dipie...@gmail.com: I agree. Moreover when we move stuff like this to the client our apps get faster, when we move it to the server they get slower. On Jun 26, 10:55 pm, Joe Barnhart joe.barnh...@gmail.com wrote: I guess we could roll our own. But I see it more like jQuery and other add-ins. Life would be very difficult if we tried to duplicate _everything_ in Python! This looks easy to use, it's pretty small, and sort of... well... elegant for lack of a better word. It is aesthetically pleasing as well as useful. I just thought others may like to know about it... -- Joe On Jun 27, 4:16 am, Jason Brower encomp...@gmail.com wrote: As nice and easy as it is (I love how easy the language is). Couldn't we just do this with python? That way we could just add our css file as a dynamic file like the others.
Re: [web2py] Re: LessCSS -- really interesting CSS compiler
Unless you need to generate CSS dynamically based on the request, I would think it would be more efficient to compile the CSS once and serve it from 'static' -- that would avoid repetitive computation and allow for browser caching, no? It's also more portable that way. Anthony On Monday, June 27, 2011 7:23:58 AM UTC-4, mcm wrote: Wouldn't it be nice to manage the lesscss variables (they look much like macros) from inside web2py? That would add just a tiny computational effort on the server. mic 2011/6/27 Massimo Di Pierro massimo@gmail.com: I agree. Moreover when we move stuff like this to the client our apps get faster, when we move it to the server they get slower. On Jun 26, 10:55 pm, Joe Barnhart joe.ba...@gmail.com wrote: I guess we could roll our own. But I see it more like jQuery and other add-ins. Life would be very difficult if we tried to duplicate _everything_ in Python! This looks easy to use, it's pretty small, and sort of... well... elegant for lack of a better word. It is aesthetically pleasing as well as useful. I just thought others may like to know about it... -- Joe On Jun 27, 4:16 am, Jason Brower enco...@gmail.com wrote: As nice and easy as it is (I love how easy the language is). Couldn't we just do this with python? That way we could just add our css file as a dynamic file like the others.
[web2py] Re: LessCSS -- really interesting CSS compiler
I thought there was a Python tool that did that. I can't remember the name offhand. On Jun 26, 4:16 pm, Jason Brower encomp...@gmail.com wrote: As nice and easy as it is (I love how easy the language is). Couldn't we just do this with python? That way we could just add our css file as a dynamic file like the others. I am personally planning to use the python code in my css generation as I need to do a bit of math and want variables and functions. Makes for very clean css if you build the css for each page. (But much harder work for us programmers.) BR, Jason On 06/25/2011 02:50 PM, Joe Barnhart wrote: http://lescss.org/ The crux of this js library is to preprocess your CSS files so you can use a few carefully-chosen extensions to make your CSS files smaller and more powerful (kind of like web2py). For example, VARIABLES. How many times have you wished you could just assign a name to a color and then use it over and over and over inside your CSS file? Another example, NESTING. You can actually use a class, id, or element definition within another and its definition nests. And you can even pass parameters to tailor the nested CSS. For something as simple in concept, it's a little overwhelming at how it can transform a complicated CSS file. I'm still wrapping my head around it. -- Joe B.
[web2py] Re: LessCSS -- really interesting CSS compiler
On Monday, June 27, 2011 7:47:43 AM UTC-4, Stodge wrote: I thought there was a Python tool that did that. I can't remember the name offhand. There are at least a couple, including CleverCSS and CleanCSS.
[web2py] Re: LessCSS -- really interesting CSS compiler
this is a good idea. On Jun 27, 6:34 am, Anthony abasta...@gmail.com wrote: Unless you need to generate CSS dynamically based on the request, I would think it would be more efficient to compile the CSS once and serve it from 'static' -- that would avoid repetitive computation and allow for browser caching, no? It's also more portable that way. Anthony On Monday, June 27, 2011 7:23:58 AM UTC-4, mcm wrote: Wouldn't it be nice to manage the lesscss variables (they look much like macros) from inside web2py? That would add just a tiny computational effort on the server. mic 2011/6/27 Massimo Di Pierro massimo@gmail.com: I agree. Moreover when we move stuff like this to the client our apps get faster, when we move it to the server they get slower. On Jun 26, 10:55 pm, Joe Barnhart joe.ba...@gmail.com wrote: I guess we could roll our own. But I see it more like jQuery and other add-ins. Life would be very difficult if we tried to duplicate _everything_ in Python! This looks easy to use, it's pretty small, and sort of... well... elegant for lack of a better word. It is aesthetically pleasing as well as useful. I just thought others may like to know about it... -- Joe On Jun 27, 4:16 am, Jason Brower enco...@gmail.com wrote: As nice and easy as it is (I love how easy the language is). Couldn't we just do this with python? That way we could just add our css file as a dynamic file like the others.
[web2py] Re: LessCSS -- really interesting CSS compiler
I guess we could roll our own. But I see it more like jQuery and other add-ins. Life would be very difficult if we tried to duplicate _everything_ in Python! This looks easy to use, it's pretty small, and sort of... well... elegant for lack of a better word. It is aesthetically pleasing as well as useful. I just thought others may like to know about it... -- Joe On Jun 27, 4:16 am, Jason Brower encomp...@gmail.com wrote: As nice and easy as it is (I love how easy the language is). Couldn't we just do this with python? That way we could just add our css file as a dynamic file like the others.
[web2py] Re: LessCSS -- really interesting CSS compiler
I agree. Moreover when we move stuff like this to the client our apps get faster, when we move it to the server they get slower. On Jun 26, 10:55 pm, Joe Barnhart joe.barnh...@gmail.com wrote: I guess we could roll our own. But I see it more like jQuery and other add-ins. Life would be very difficult if we tried to duplicate _everything_ in Python! This looks easy to use, it's pretty small, and sort of... well... elegant for lack of a better word. It is aesthetically pleasing as well as useful. I just thought others may like to know about it... -- Joe On Jun 27, 4:16 am, Jason Brower encomp...@gmail.com wrote: As nice and easy as it is (I love how easy the language is). Couldn't we just do this with python? That way we could just add our css file as a dynamic file like the others.
[web2py] Re: LessCSS -- really interesting CSS compiler
That's http://lesscss.org/ Sheesh. On Jun 25, 7:50 pm, Joe Barnhart joe.barnh...@gmail.com wrote: http://lescss.org/
Re: [web2py] Re: LessCSS -- really interesting CSS compiler
On 25-06-2011 13:51, Joe Barnhart wrote: That's http://lesscss.org/ Sheesh. On Jun 25, 7:50 pm, Joe Barnhart joe.barnh...@gmail.com wrote: http://lescss.org/ thanks Joe, I've looking for such a tool for years. cheers, Stef