module App.Views.Home.Index where 

import Config.Master
import Turbinado.View
import Turbinado.View.Helpers
import Control.Monad.Trans

markup :: View XML
markup= <div>
          <h1>Turbinado?</h1>
          <div style="float:right">
            <img src="http://upload.wikimedia.org/wikipedia/en/thumb/0/0e/TurbinadoSugar.jpg/757px-TurbinadoSugar.jpg" width="300" /> 
          </div>
          <p>Turbinado is an easy-to-use, <% anchorTag "/Home/Performance" "fricking fast" %> web application framework for Haskell (and the <a href="www.haskell.org/ghc">Glorious Glasgow Haskell Compiler</a>).  Naturally, this website is written in Turbinado, so head over to the <% anchorTag "http://github.com/alsonkemp/turbinado-website/tree/master" "Git repo" %> to see how easy it is to code websites in Turbinado.</p>

          <p><a href="http://en.wikipedia.org/wiki/Turbinado">Turbinado</a> is also that yummy, not-so-refined sugar...</p>
          <h1>Why?</h1>
          <p>Haskell has no easy-to-use web framework.  Turbinado is an effort to build one by lazily stealing the best ideas from <% anchorTag "http://www.rubyonrails.org" "Ruby On Rails" %>, <% anchorTag "http://www.asp.net" "ASP.NET" %>, etc.</p>
          <h1>Features</h1>
          <p>Turbinado gives you all of the benefits of coding in Haskell and adds:</p>
          <ul class="standard-list">
            <li> A fast HTTP server with static- and dynamic-content serving capabilities; </li>
            <li> Views built using a simple HTML-like templating syntax combined with tag-matching to guard against invalid HTML; </li>
            <li> Automagic recompilation of Controllers, Layouts and Views; </li>
            <li> A database <% anchorTag "http://en.wikipedia.org/wiki/Object-relational_mapping" "ORM" %> to make database interaction (especially with PostgreSQL) joyful; </li>
            <li> A rich set of tags to make designing pages simpler;. </li>
          </ul>

          <h1>... On The Backs of Giants ... </h1>
          <p>Turbinado wouldn't be possible without the original work of the following people:</p>
          <ul class="standard-list">
            <li> <% anchorTag "http://www.haskell.org/ghc" "The GHC Team" %> for something as insane as Haskell and GHC</li>
            <li> <% anchorTag "http://www.cs.chalmers.se/~d00nibro/" "Niklas Broberg" %> for Haskell Server Pages, the HSP Runtime, Haskell Source Extensions and Haskell Regular Expressions</li>
            <li> <% anchorTag "http://www.cse.unsw.edu.au/~dons/hs-plugins/" "Don Stewart" %> for hs-plugins </li>
            <li> <% anchorTag "http://www.cs.chalmers.se/~bringert/projects.html" "Bjorn Bringert" %> for HTTP </li>
            <li> <% anchorTag "http://software.complete.org/software/projects/show/hdbc" "John Goerzen" %> for Haskell Database Connectivity.</li>
          </ul>
        </div>
-- SPLIT HERE

