[Haskell-cafe] Hosting a static site with Yesod
Yifan Yu
yvifan at gmail.com
Sat Nov 29 09:09:16 UTC 2014
Hi all,
I'm experimenting with Yesod and I've created a simple scaffolding site
with yesod. I've downloaded a bootstrap template site and wish to simply
host this site with yesod. The template site has an index.html and a bunch
of css and js files. This seemly simple task has baffled me. By my
understanding, the site should be placed under the 'static' directory, I
tried to use sendFile to send the index.html file in getHomeR, but only the
content of the that file is displayed, without the css and js. Should I do
this with a Subsite?
Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20141129/9d958aa9/attachment.html>
More information about the Haskell-Cafe
mailing list