<commit_before>ses-html-snaplet
================

A snaplet for the ses-html package

example
================
``haskell
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards   #-}
{-# LANGUAGE TemplateHaskell   #-}
module Main ( main ) where

import           Control.Lens
import qualified Data.ByteString.Char8 as B8
import qualified Data.ByteString.Lazy.Char8 as BL8
import           Snap
import           Snap.Snaplet.SES

data App = App {
   _awsKeys :: Snaplet AWSKeys
}

makeLenses ''App

initApp :: SnapletInit App App
initApp = makeSnaplet "name" "description" Nothing $ do
            _awsKeys <- nestSnaplet "ses-html" awsKeys initAWSKeys
            addRoutes [("/", handleKeys)]
            return App {..}
  where
    handleKeys = method GET $ do
      with awsKeys $ withKeys $ liftIO . print
      result <- with awsKeys $ sendEmail ["<EMAIL>"] "cookie-crisp" "<h1>TEST</h1>"
      liftIO $ print result
      writeBS "done"
<commit_msg>fixed readme<commit_after>ses-html-snaplet
================

A snaplet for the ses-html package

example
================
```haskell
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards   #-}
{-# LANGUAGE TemplateHaskell   #-}
module Main ( main ) where

import           Control.Lens
import qualified Data.ByteString.Char8 as B8
import qualified Data.ByteString.Lazy.Char8 as BL8
import           Snap
import           Snap.Snaplet.SES

data App = App {
   _awsKeys :: Snaplet AWSKeys
}

makeLenses ''App

initApp :: SnapletInit App App
initApp = makeSnaplet "name" "description" Nothing $ do
            _awsKeys <- nestSnaplet "ses-html" awsKeys initAWSKeys
            addRoutes [("/", handleKeys)]
            return App {..}
  where
    handleKeys = method GET $ do
      with awsKeys $ withKeys $ liftIO . print
      result <- with awsKeys $ sendEmail ["<EMAIL>"] "cookie-crisp" "<h1>TEST</h1>"
      liftIO $ print result
      writeBS "done"

{'fraction_non_alphanumeric': 0.13239875389408098, 'fraction_numerical': 0.006230529595015576, 'mean_word_length': 2.8850806451612905, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4751402', 'n_tokens_mistral': 632, 'n_tokens_neox': 614, 'n_words': 169}