I’m wondering what the best way to go about including css in Happstack webpages would be. I tried google, with no luck, so I thought I would ask here.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest method for me was to serve them from a static folder. Eg adding a handler like:
Replace
"www"with the directory that you want happstack to use. For more information on serveDirectory, see the Haddock documentation.Then I have a
www/cssfolder where all of my css lives. I use Blaze templates so I link to them all directly: