imm-1.2.1.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 Source #

Where and what to write in a file

Interpreter

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

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

defaultFileContent :: Feed -> FeedElement -> ByteString Source #

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

Low-level helpers

defaultBody :: Feed -> FeedElement -> Html Source #

Generate the HTML content for a given feed element