13 Jul
2011
13 Jul
'11
12:02 a.m.
Suppose I want to avoid caching of my js files. I did something like that: script ! type_ "text/javascript" $ getScripts [my,editJS] Where my = "document.write('<script type=\"text/javascript\" src=\"/js/my.js?' + new Date().getTime() + '\" ><\\/script>');" booksJS = "document.write('<script type=\"text/javascript\" src=\"/js/books.js?' + new Date().getTime() + '\" ><\\/script>');" getScripts scripts =preEscapedString $ foldl1 (++) scripts Although I load the scripts, it seems I'm not avoid anything at all. What is the better (or right way) to do that (with Happstack and blaze-html)?
5480
Age (days ago)
5480
Last active (days ago)
0 comments
1 participants
participants (1)
-
Mister Asafe Ribeiro