You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Chirag Misra <Ch...@Clarivate.com.INVALID> on 2023/01/27 10:20:33 UTC
Use SASS Stylesheets
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.
Re: Use SASS Stylesheets
Posted by Chirag Misra <Ch...@Clarivate.com.INVALID>.
Thanks Ben, that’s really useful.
From: Ben Weidig <be...@netzgut.net>
Date: Friday, 27 January 2023 at 10:43
To: Tapestry users <us...@tapestry.apache.org>
Subject: Re: Use SASS Stylesheets
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://urldefense.com/v3/__https://gitlab.com/jsass/jsass__;!!NknhfzgzgQ!xfRj_6aqDejwJ6Tv6xNivkpDPnVgqLzyqamO-5QJfTIxalP6ay12LWb8fLwIDu9eWFZOJ5vcSxlEcuzO$<https://urldefense.com/v3/__https:/gitlab.com/jsass/jsass__;!!NknhfzgzgQ!xfRj_6aqDejwJ6Tv6xNivkpDPnVgqLzyqamO-5QJfTIxalP6ay12LWb8fLwIDu9eWFZOJ5vcSxlEcuzO$> 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
<Ch...@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.
>
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.
Re: Use SASS Stylesheets
Posted by Ben Weidig <be...@netzgut.net>.
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
<Ch...@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.
>