diff options
author | Joey Hess <joey@kitenet.net> | 2012-07-26 17:56:24 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-07-26 17:56:24 -0400 |
commit | 9fd03c65f9ebee437317a21e27afb600d9815209 (patch) | |
tree | 9799150f582e59d8a343e9ceaebce3dc65897605 /Utility | |
parent | e79198aacbb7891b0b7a4d156160a1524038e18c (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')
-rw-r--r-- | Utility/Yesod.hs | 4 |
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" |