[Haskell-cafe] How to solve this problem?It's quite easy in PHP.
Donald Bruce Stewart
dons at cse.unsw.edu.au
Tue Feb 13 20:57:15 EST 2007
keepbal:
>
> The code and template are separated in the PHP example,so
> designers can design with out too much PHP knowledge.This is
> actually what I want to solve.
I'd use one of the Html/XML pretty printing libraries then,
xhtml: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xhtml-3000.0.1
haxml: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HaXml-1.13.2
hxt: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/hxt-7.1
All available on hackage.haskell.org. There's few others too, here,
http://www.haskell.org/haskellwiki/Libraries_and_tools/Web_programming
It should be perfectly possible to write clean code, with the
presentation separated from the content.
-- Don
More information about the Haskell-Cafe
mailing list