[web-devel] Some upcoming Lucius changes (now on Github)

Michael Snoyman michael at snoyman.com
Fri Dec 2 10:31:19 CET 2011


Hi all,

I wanted to announce some upcoming changes for Lucius.

1. A number of people have requested variable support. I was hesitant
at first, as this overlaps with Haskell variables, but it really is
too useful a feature not to have. Syntax is stolen from Less:

        @myColor: red;
        p { color: #{myColor}; }
        div { color: #{myColor}; }

    Note that you can only declare raw strings as the values of a
variable, not refer to other variables. We can consider relaxing this
in the future.

2. Runtime Lucius, as a parallel to runtime Hamlet. It does not
support any URL interpolation (I can't think of a use case where that
would be relevant), only interpolating raw text values.

3. Until a better name comes along: servius, a standalone server
(based on Warp and wai-app-static) that will render Hamlet and Lucius
on-the-fly.

This trifecta comes in *very* handy for mocking up some HTML/CSS
before integrating it into an actual site.

Michael



More information about the web-devel mailing list