
28 Jun
2011
28 Jun
'11
12:20 a.m.
On Tue, Jun 28, 2011 at 5:12 AM, Mister Asafe Ribeiro
How do i include a external js file, such as jquery, using blaze html in Happstack?
Speaking from the blaze-html side, you would use the script and src combinators. So if you wanted to use Google-hosted jQuery, you could use: import qualified Text.Blaze.Html5 as H import qualified Text.Blaze.Html5.Attributes as A H.script ! A.src "https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" $ return () Michael