X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/8e752d09766da8b3ebb9ca9ba6f67be7168e63d1..651cdd4b2a85f4e5f9d298a7eea7d0e6d94442b1:/doc/todo/rewrite_ikiwiki_in_haskell/discussion.mdwn?ds=inline diff --git a/doc/todo/rewrite_ikiwiki_in_haskell/discussion.mdwn b/doc/todo/rewrite_ikiwiki_in_haskell/discussion.mdwn index b6495194a..851fdbe1f 100644 --- a/doc/todo/rewrite_ikiwiki_in_haskell/discussion.mdwn +++ b/doc/todo/rewrite_ikiwiki_in_haskell/discussion.mdwn @@ -55,3 +55,34 @@ href="http://jaspervdj.be/hakyll">Hakyll? >> dependency stuff. -- [[tychoish]] >>> (nods) Which is why I suggested it. I'm not sure whether it would be easier to "bolt on" those things than static compilation, but it could be worth looking at, at least. -- [[KathrynAndersen]] + +----- + +Rather than coding plugins for the Perl ikiwiki in Haskell, I wonder how easily a Haskell ikiwiki could still support plugins written in Perl? The (old and apparently stale) [HsPerl5](http://hackage.haskell.org/package/HsPerl5) package might provide a helpful starting point there. -- [[JoshTriplett]] + +----- + +I'm very keen on this, and would be interested in helping. I've been wanting to use ikiwiki for years, but the idea of investing time in the perl ecosystem and perl-based implementation stops me. -- [[Simon Michael]] + +----- + +I've recently been wondering whether I could migrate my personal blog (powered by IkiWiki) to Hakyll. +I'm really fond of Ikiwiki's wiki link syntax, as well as the linking rules, and many of the features +offered by plugins. Therefore I set out to see how easily (and whether it's even feasible) to implement +them on top of Hakyll. I'm totally new to Hakyll so I don't fully understand some of the concepts but +I've made some promising initial progress. I decided to share my work in progress experiments here: + + +I can recognise and parse out wiki links and directives. Wikilinks are translated into HTML links, but +the page-linking rules are not yet implemented (the wiki link target is passed through as-is). For +Directives, I've written basic implementations of `meta` and `tag`. In both cases, I build up Hakyll +`Metadata`, which is really a hash map. I've yet to figure out plumbing that back into Hakyll, though. +I've got an idea of how to handle `template`, but haven't tried coding it up yet. — [[Jon]] + +----- + +Cool, Jon. Have you thought about Shake + pandoc as an interesting alternative to Hakyll, +perhaps a little more lightweight and flexible ? Here’s a [bit of Shake code](https://github.com/simonmichael/hledger/blob/master/Shake.hs#L421) +I use for rendering wiki-like pages. —[[Simon Michael]] + +> I've not looked at Shake yet, thanks, I'll give it a look! — [[Jon]]