clckwrks-plugin-redirect-0.0.1: support redirects for CMS/Blogging in clckwrks

Safe HaskellNone
LanguageHaskell2010

Clckwrks.Redirect.Plugin

Synopsis

Documentation

plugin Source #

Arguments

:: ClckPlugins

plugins

-> Text

baseURI

-> IO (Maybe Text) 

initRedirectPlugin Source #

Arguments

:: Plugins Theme (ClckT ClckURL (ServerPartT IO) Response) (ClckT ClckURL IO ()) ClckwrksConfig ClckPluginsSt

Plugins handle

-> Text

base URI to prepend to generated URLs

-> IO (Maybe Text)

possible error message

initialize the redirect plugin

we can not use the standard initPlugin function for the redirect plugin because we want to intercept URLs higher up the chain.