| Copyright | (c) Nathan Bloomfield 2017 |
|---|---|
| License | GPL-3 |
| Maintainer | nbloomf@gmail.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Hakyll.Shortcode
Description
This module provides a filter for Hakyll which expands WordPress-style shortcodes. To use it, include the line >>= applyShortcodes allServices in your compiler.
- data ShortcodeService
- expandShortcodes :: [ShortcodeService] -> String -> String
- applyShortcodes :: (Monad m, Functor f) => [ShortcodeService] -> f String -> m (f String)
- allServices :: [ShortcodeService]
Documentation
expandShortcodes :: [ShortcodeService] -> String -> String Source #
Expand shortcodes of each of the provided types.
applyShortcodes :: (Monad m, Functor f) => [ShortcodeService] -> f String -> m (f String) Source #
Monadic version of expandShortcodes, for use with Hakyll.
allServices :: [ShortcodeService] Source #
A list of all the available shortcodes (for convenience).