Hi Chirag,

We successfully included SASS in our projects.

However, our implementation isn't open-source, and it's quite a specific
solution as we need to modify and compile different Bootstrap versions
depending on each request in a singular project.


Here's what we do:


We use https://gitlab.com/jsass/jsass to compile SASS to CSS.

Sadly, the underlying libsass is more or less EOL, as is jsass itself.

It didn't include a library for Apple Silicon, which we had to build and
add ourselves.


On the Tapestry side, we created SASS-specific variants of:

   - org.apache.tapestry5.commons.Resource
   - org.apache.tapestry5.services.AssetFactory
   - org.apache.tapestry5.services.assets.ResourceTransformer


You could checkout
org.apache.tapestry5.internal.webresources.LessResourceTransformer and how
it's contributed/used in Tapestry to see how to integrate something similar.


Cheers

Ben

On Fri, Jan 27, 2023 at 11:21 AM Chirag Misra
<chirag.mi...@clarivate.com.invalid> wrote:

> Hi,
>
> I was looking into using SASS stylesheets on our application which runs on
> Tapestry version 5.7.3
>
> I noticed that there is support for LESS using the less4j library. Has
> anyone been able to use SASS? I was expecting that there would be support
> for wro4j in tapestry but that doesn’t seem to be the case. Any pointers on
> how you would go about using SASS?
>
> Thanks,
> Chirag
>
> Confidentiality note: This e-mail may contain confidential information
> from Clarivate. If you are not the intended recipient, be aware that any
> disclosure, copying, distribution or use of the contents of this e-mail is
> strictly prohibited. If you have received this e-mail in error, please
> delete this e-mail and notify the sender immediately.
>

Reply via email to