hakyll-shortcode-0.0.2: A shortcode extension module for Hakyll

Copyright(c) Nathan Bloomfield 2017
LicenseGPL-3
Maintainernbloomf@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

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.

Synopsis

Documentation

data ShortcodeService Source #

A simple sum type representing the available shortcodes.

Constructors

GeoGebra 
Gravatar 
YouTube 
Example 

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).