Copyright | (c) Matthew Mosior 2023 |
---|---|
License | BSD-style |
Maintainer | mattm.github@gmail.com |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- addStaticContentExternalStreamly :: (ByteString -> Either a ByteString) -> (ByteString -> String) -> FilePath -> ([Text] -> Route master) -> Text -> Text -> ByteString -> HandlerFor master (Maybe (Either Text (Route master, [(Text, Text)])))
Yesod.Default.Util Replacement function
addStaticContentExternalStreamly Source #
:: (ByteString -> Either a ByteString) | javascript minifier |
-> (ByteString -> String) | hash function to determine file name |
-> FilePath | location of static directory. files will be placed within a "tmp" subfolder |
-> ([Text] -> Route master) | route constructor, taking a list of pieces |
-> Text | filename extension |
-> Text | mime type |
-> ByteString | file contents |
-> HandlerFor master (Maybe (Either Text (Route master, [(Text, Text)]))) |
A more performant replacement of addStaticContentExternal found in Yesod.Default.Util.