You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by akshay <ak...@gmail.com> on 2014/09/12 16:07:55 UTC

Dynamic updating the .less file

Hi,

I am trying to figure out a way, by which I can update the variables
defined in the.less files dynamically after a page submit, so that the
styling of the page can be altered.

I want this modified .less file to be imported into main.less file which
gets finally translated to .css file by tapestry.

As we know that the .less files are compiled into .css by tapestry, I am
not sure how do I put a hook around , so that the tapestry reads and
re-compile the .less file again after a page submit.

FYI:- I have a servlet in place which writes  into .css and load it as a
last one, which I believe was much simpler than modifying .less files(as I
think that this infrastructure would not work in case of.less files).

Any suggestions would be highly appreciable.


Regards and Thanks,
Akshay