Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Jinjing Wang <nfjinjing <at> gmail.com>
Subject: ANN: moe html combinator
Newsgroups: gmane.comp.lang.haskell.cafe
Date: Friday 28th August 2009 05:08:58 UTC (over 7 years ago)
hand written html is fine, except for the closing tags:

what if

      html' - do
        head' - do
          meta
            [http_equiv "Content-Type", content "text/html; charset-utf-8"]
(/)
          title' - str "my title"
          link [rel "icon", _type "image/png", href "panda_icon.png"] (/)

        body' - do
          div [_class "container"] - do
            str "hello world"

produces

    
      
        
        
        
          my title
        
        
        
      
      
        
hello world
That's moe. There's also extra dsl sugar / flavors for your convienence, including (currently available) markdown and kawaii. It's a new library, tries to bring some haskell fun back to web programming, so .. enjoy. - moe: http://hackage.haskell.org/package/moe -- jinjing
 
CD: 2ms