Yes indeed, this Lorem ipsum generator accepts an array of words, or prewritten phrases for generating random text. It also accepts an start phrase.
This programs listen to HTTP requests on port 8080, and takes this variables as GET parameters:
| Variable | Description | Options |
|---|---|---|
dict |
The dictionary with start string and an array of strings | chiquito, ipsum |
numParags |
Number of paragraphs to be generated | 1 to infinity... (default 5) |
The dictionaries are simple files, with an string start and an array if strings array. This files are passed as mod dicts in main.rs and indicated in generate function as options.
In this repository there are examples of dictionaries in the folder src/dicts
Why not? At the moment this is a basic program that outputs text as plain text called by an HTTP request.