For the javascript part, the last thing they say before the footer in
lesscss.org is that you can embed javascript variables inside the css:

    It is also possible to access the JavaScript environment:

    @height: `document.body.clientHeight`;

I don't know how they handle it, but I don't find appropiate to mix
css and javascript.

And about being based on an older version of sass, i didn't use the
appropiate words. What I meant is that less was written because by
that time sass wasn't css compatible, but now the sass people created
scss, which is fully css compatible.

So, since the motivation that pushed the less people to create the
language (sass not being css compatible) does not apply today and
since they mix css and javascript, I find a more interesting option to
uses scss.

Regards,

Francesc

On Aug 6, 6:16 am, Eugene Lazutkin <eugene.lazut...@gmail.com> wrote:
> Inline.
>
> On 08/03/2011 08:21 AM, francescortiz wrote:
>
> > LESS combines CSS and javascript which I think that goes beyond the
>
> What does it mean? Care to give an example? Like textually combining
> both languages? Or does it produces both JavaScript and CSS files?
>
> Last time I checked (today) it is a simple preprocessor, which produces
> pure CSS files. It can be run statically, or dynamically in a browser.
>
> > safe line, so I vote for SCSS (http://sass-lang.com/) that also has
> > a python version (http://github.com/Kronuz/pyScss).
>
> > LESS is based on an "older" version of SCSS that didn't follow CSS
> > syntax (SASS).
>
> LESS follows CSS rules, in fact any CSS is a valid LESS --- that was the
> whole idea of LESS as a superset of CSS.
>
> And could you give me a reference for my own education on "LESS is based
> on older version of SCSS"?
>
> Cheers,
>
> Eugene
>
>
>
>
>
>
>
>
>
> > On Aug 3, 1:52 pm, Tom Evans <tevans...@googlemail.com> wrote:
> >> On Wed, Aug 3, 2011 at 10:10 AM, Jithin Emmanuel <jithin1...@gmail.com> 
> >> wrote:
> >>> Can some one please point out how to use less css along with compressor
> >>> extension?
> >>> I use mac 10.6.8 and I am trying to use an existing project which was
> >>> initially setup in windows.
> >>> I am trying to figure out what I should give here.
> >>> COMPRESS_PRECOMPILERS = (
>
> >>>     ('text/less',""),
> >>> )
> >>> Any help appreciated.
>
> >> Hadn't come across less css before, looks interesting - well, looks
> >> how I wanted CSS to behave 10 years ago.
>
> >> Does this help? Seems to have examples for less
>
> >>http://django_compressor.readthedocs.org/en/latest/settings/#compress...
>
> >> Cheers
>
> >> Tom

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

Reply via email to