Popularity
0.6
Stable
Activity
5.4
-
0
1
0

Monthly Downloads: 9
Programming language: Haskell
License: GNU General Public License v3.0 or later
Tags: Scripting     DevOps    

web-output alternatives and similar packages

Based on the "Scripting" category.
Alternatively, view web-output alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of web-output or a related project?

Add another 'Scripting' Package

README

Output a single file to the browser

This library exposes a simple function:

toTheBrowser :: String -> IO ()

It will accept a string, create an HTML page containing it and open the user web browser on that page. This is convenient for example in order to show the output of a script

Output multiple files to the browser

multiToTheBrowser :: [(String, Text)] -> IO ()

Provided with file names and contents, the library will create a temporary directory, write the files with the corresponding names and open the user browser pointing to the first file in the list. Useful to show pages which require assets divided in multiple files. The user will be pointed to a location showing the path of the temporary directory in their filesystem, so that they could easily copy the contents and publish. Supports only Posix file systems like in a Mac or a Linux.