imm-1.2.0.0: Execute arbitrary actions for each unread element of RSS/Atom feeds

Safe HaskellNone
LanguageHaskell98

Imm.Hooks.WriteFile

Contents

Description

Hooks interpreter that writes a file for each element.

Synopsis

Settings

data FileInfo #

Where and what to write in a file

Interpreter

defaultFilePath :: FilePath -> Feed -> FeedElement -> FilePath #

Generate a path roottitledate-title.html, where root is the first argument

defaultFileContent :: Feed -> FeedElement -> ByteString #

Generate an HTML page, with a title, a header and an article that contains the feed element

Low-level helpers

defaultHeader :: Feed -> FeedElement -> Html #

Generate an HTML header for a given feed element

defaultBody :: Feed -> FeedElement -> Html #

Generate the HTML content for a given feed element

convertURI :: IsString t => URIRef a -> t #

convertText :: IsString t => Text -> t #

convertDoc :: IsString t => Doc -> t #