[Haskell-beginners] Web frameworks
Lyndon Maydwell
maydwell at gmail.com
Fri Jun 17 17:08:48 CEST 2011
I know that haml[1], sass[2] and CoffeeScript[3] that are used quite
commonly in the ruby community for generating html, css and javascript
respectively.
I believe Yesod's primary motivation for using 'special' templates is
the ability to make static guarantees about wether URLs, etc are
valid, but they also alleviate some code repetition.
I'd actually be very happy if Yesod supported the syntax from haml,
etc, as it would be one less syntax to learn (not that the options
offered take long to learn) and these languages are quite nice to
write in.
--
[1] http://haml-lang.com/
[2] http://sass-lang.com/
[3] http://jashkenas.github.com/coffee-script/
On Fri, Jun 17, 2011 at 10:55 PM, Christopher Done
<chrisdone at googlemail.com> wrote:
> On 17 June 2011 16:49, Haisheng Wu <freizl at gmail.com> wrote:
>>
>> Actually I have one question that what's the reason it has 'special' (a
>> better word?) style at programming CSS and JavaScripts?
>> Seems like no other frameworks doing that? (Correct me if I am wrong)
>
> You don't really need a framework to do CSS
> https://github.com/chrisdone/amelie/blob/master/src/Amelie/View/Style.hs
> or JavaScript
> https://github.com/chrisdone/amelie/blob/master/src/Amelie/View/Script.hs
> in a first-class Haskell DSL. The benefit is that you can manipulate both at
> a kind of macro level, and benefit from Haskell's type system if you wish to
> make your JavaScript or CSS type-safe.
> _______________________________________________
> Beginners mailing list
> Beginners at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
More information about the Beginners
mailing list