Skip to content

RaulWhite/rust-ipsum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rust-ipsum

Yet another Lorem ipsum generator in rust... with dictionaries and web API!

Yes indeed, this Lorem ipsum generator accepts an array of words, or prewritten phrases for generating random text. It also accepts an start phrase.

Usage

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)

Dictionaries

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

Why not? At the moment this is a basic program that outputs text as plain text called by an HTTP request.

About

Lorem Ipsum (or another) generator in rust, with word/phrase dictionary and web API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors