[web-devel] How to create Cassius Mixin?

Michael Snoyman michael at snoyman.com
Wed Jan 14 06:51:20 UTC 2015


Actually, that turned out to be pretty easy. Now up on Hackage as
shakespeare-2.0.3. Let me know if there are problems.

On Wed Jan 14 2015 at 8:44:34 AM Michael Snoyman <michael at snoyman.com>
wrote:

> One answer is that Cassius is just a thin wrapper on top of Lucius. You
> can use a Lucius mixin with Cassius just fine. It's essentially an API
> oversight that there's no equivalent cassiusMixin function. I'll probably
> add one in the next few days, thanks for pointing it out.
>
> On Wed Jan 14 2015 at 2:14:26 AM Antoni Boucher <bouanto at vivaldi.net>
> wrote:
>
>> Hello.
>>
>> How can I create a CSS mixin with Cassius (from Yesod Haskell Web
>> Framework) ?
>>
>> For instance, this code:
>>
>>     transition val = [cassiusMixin|
>>     -webkit-transition: #{val}
>>     -moz-transition: #{val}
>>     -ms-transition: #{val}
>>     -o-transition: #{val}
>>     transition: #{val}
>>     |]
>>
>> does not work because cassiusMixin does not exist.
>>
>> Is there a way to create a mixin with cassius?
>>
>> If not, is cassius a limited version of lucius?
>>
>> Thanks.
>> _______________________________________________
>> web-devel mailing list
>> web-devel at haskell.org
>> http://www.haskell.org/mailman/listinfo/web-devel
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/web-devel/attachments/20150114/afeabc75/attachment.html>


More information about the web-devel mailing list