[hyper linked each part to the other parts jeremy@n-heptane.com**20080421004840] { hunk ./tutorial/SimpleSite1.lhs 10 + (Part II and Part III) hunk ./tutorial/SimpleSite1.lhs 148 -In the next post we will see how to address these two issues. +In the next post we will see how to +Iaddress these two issues. hunk ./tutorial/SimpleSite1.lhs 196 + + hunk ./tutorial/SimpleSite2.lhs 22 + (Part I and Part III) hunk ./tutorial/SimpleSite2.lhs 231 -

In part III, we will make some small, final adjustments to +

In part III, we will make some small, final adjustments to hunk ./tutorial/SimpleSite2.lhs 279 + + hunk ./tutorial/SimpleSite3.lhs 26 + (Part I and Part II) hunk ./tutorial/SimpleSite3.lhs 77 +

Unfortunately, the following code is quite broken and does not + play well with others. For example, if a link points to a .css file, + and the .css file references image.png, the browser will try to rewrite + the path replacing whatever comes after the last / with + image.png. So, consider this section a work in + progress. (In fact, consider everything in this series a work in + progress). + hunk ./tutorial/SimpleSite3.lhs 217 -> implURL :: [ServerPartT IO Response] -> implURL = +> implURL :: (ToMessage a) => Site link Link (WebT IO) a -> [ServerPartT IO Response] +> implURL siteSpec = hunk ./tutorial/SimpleSite3.lhs 223 -> return . toResponse =<< runSite ourSiteSpec link +> return . toResponse =<< runSite siteSpec link hunk ./tutorial/SimpleSite3.lhs 228 -> do tid <- forkIO $ simpleHTTP nullConf implURL +> do tid <- forkIO $ simpleHTTP nullConf (implURL ourSiteSpec) hunk ./tutorial/SimpleSite3.lhs 234 + + }