aboutsummaryrefslogtreecommitdiff
path: root/Utility/Yesod.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-07-26 17:56:24 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-07-26 17:56:24 -0400
commit9fd03c65f9ebee437317a21e27afb600d9815209 (patch)
tree9799150f582e59d8a343e9ceaebce3dc65897605 /Utility/Yesod.hs
parente79198aacbb7891b0b7a4d156160a1524038e18c (diff)
webapp now does long polling
The webapp is now a constantly updating clock! I accomplished this amazing feat using "long polling", with some jquery and a little custom java script. There are more modern techniques, but this one works everywhere.
Diffstat (limited to 'Utility/Yesod.hs')
-rw-r--r--Utility/Yesod.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utility/Yesod.hs b/Utility/Yesod.hs
index 05f684490..a0dd3bdd2 100644
--- a/Utility/Yesod.hs
+++ b/Utility/Yesod.hs
@@ -16,3 +16,7 @@ template f = "templates" </> f
{- A hamlet template file. -}
hamletTemplate :: FilePath -> FilePath
hamletTemplate f = template f ++ ".hamlet"
+
+{- A julius template file. -}
+juliusTemplate :: FilePath -> FilePath
+juliusTemplate f = template f ++ ".julius"