on master help sign in
Added "Why renderChain" section, fixed some typos.
commitdabfc43e08bc2e93d6ba07f6545ea31a5441e82f authorJasper Van der Jeugt <jaspervdj@gmail.com> dateFri 12 Mar 2010, 14:24 (17 years ago) parentd98520a
2 files changed+10−2
examples/hakyll/tutorials/part01.markdown+2−2 examples/hakyll/tutorials/part02.markdown+8
examples/hakyll/tutorials/part01.markdown+2−2
@@ -60,7 +60,7 @@ main = hakyll "http://example.com" $ do
6060 liftIO $ putStrLn "I'm in your computer, generating your site!"
6161~~~~~
6262
63−Note how we wrap everyting in the `hakyll` function. This is useful because
63+Note how we wrap everything in the `hakyll` function. This is useful because
6464it will generate a very nice main function. We also pass the full site URL to
6565the `hakyll` function. If you don't have an URL for your site yet, it doesn't
6666really matter for now; just fill in anything then. The URL is only used for
@@ -83,7 +83,7 @@ One way to write such a `Context`, is a page.
8383Another important concept in Hakyll is pages. Pages are text files that can be
8484written in markdown, html, rst... basically anything Pandoc supports.
8585Furthermore, they can also contain some metadata. The metadata is placed in the
86−file header and surrouded by `---` lines. Each line should contain a
86+file header and surrounded by `---` lines. Each line should contain a
8787`key: value` pair. Let's have a look at the `index.markdown` page.
8888
8989 ---
examples/hakyll/tutorials/part02.markdown+8
@@ -76,8 +76,16 @@ our functions when it is really needed. In this particular case, `test` would
7676only be executed if either `test.markdown` or `template.html` were recently
7777changed.
7878
79+## So what's renderChain then?
80+
81+Now, we have done pretty much the same as we did with the `renderChain` function
82+in the first part. That's right, the `renderChain` is more or less implemented
83+like this. So, you will probably use `renderChain` in most cases, but it's
84+handy if you know how it works.
85+
7986## The gist of it
8087
8188- Arrows really aren't complicated.
8289- Compose them using `>>>`.
8390- `HakyllAction` tracks dependencies for you. Use it.
91+- In most cases, you will just use `renderChain`.