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)?