addStaticContentExternal :: (ByteString -> Either a ByteString)javascript minifier
-> (ByteString -> String)hash function to determine file name
-> FilePathlocation of static directory. files will be placed within a "tmp" subfolder
-> ([Text] -> Route master)route constructor, taking a list of pieces
-> Textfilename extension
-> Textmime type
-> ByteStringfile contents
-> HandlerFor master (Maybe (Either Text (Route master, [(Text, Text)])))
An implementation of addStaticContent which stores the contents in an external file. Files are created in the given static folder with names based on a hash of their content. This allows expiration dates to be set far in the future without worry of users receiving stale content.