Re: [Zotonic-Usr] lib controller and LESScss

30 views
Skip to first unread message

Arjan Scherpenisse

unread,
Sep 10, 2012, 5:16:21 AM9/10/12
to zotoni...@googlegroups.com
Currently it is not possible to directly serve .less or .scss files.
How it works in zotonic is as follows:

in lib/ I have 2 dirs, scss and css.

When you enable mod_development, it automatically scans modified .scss / .less files for changes and then compiles them into the css folder.
(currently this automatic recompiling only works on linux, though)

Arjan


On Sun, Sep 9, 2012 at 10:14 PM, punaparta <ton...@gmail.com> wrote:
Is it possible to modify {% lib %} to also combine and serve .less files?

punaparta

unread,
Sep 14, 2012, 1:36:05 PM9/14/12
to zotoni...@googlegroups.com
Oh that would be nice since it doesnt require the javascript file.

I have enabled mod_development module on a site with some less files on lib/scss but they do not seem to be compiled to lib/css. Is there anything more that needs to be done? Zotonic running on Ubuntu.

Arjan Scherpenisse

unread,
Sep 14, 2012, 2:41:42 PM9/14/12
to zotoni...@googlegroups.com, punaparta
Try installing "inotify-tools" for that.

If all is well you should see a message "Setting up watches. Beware:
since -r was given, this may take a while!"
in the zotonic shell when it's starting.

scss compilation is done with the "sass" binary, which should be in the
path.

Arjan

On 09/14/2012 07:36 PM, punaparta wrote:
> Oh that would be nice since it doesnt require the javascript file.
>
> I have enabled mod_development module on a site with some less files on
> lib/scss but they do not seem to be compiled to lib/css. Is there
> anything more that needs to be done? Zotonic running on Ubuntu.
>
> On Monday, September 10, 2012 12:16:22 PM UTC+3, Arjan Scherpenisse wrote:
>
> Currently it is not possible to directly serve .less or .scss files.
> How it works in zotonic is as follows:
>
> in lib/ I have 2 dirs, *scss* and *css*.
Reply all
Reply to author
Forward
0 new messages