This example shows how you could use GHCJS with an existing web site. To keep it simple this example uses static HTML pages.
The source for this example is here.
With the regular GHC or integrated GHCJS installed.
cd multiple-pages cabal install multiple-pages http://localhost/.cabal/share/mulitple-pages-0.0.1/index.html
With integrated GHCJS installed.
cd multiple-pages cabal install ghcjs-min ~/.cabal/bin/multiple-pages.jsexe data/main.js open http://localhost/.cabal/share/mulitple-pages-0.0.1/index.html