Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgamini/elixilorem
Lorem Ipsum generator for Elixir
https://github.com/mgamini/elixilorem
Last synced: about 1 month ago
JSON representation
Lorem Ipsum generator for Elixir
- Host: GitHub
- URL: https://github.com/mgamini/elixilorem
- Owner: mgamini
- License: mit
- Created: 2014-11-07T19:21:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-03T11:57:13.000Z (over 5 years ago)
- Last Synced: 2024-08-09T09:30:05.967Z (4 months ago)
- Language: Elixir
- Homepage:
- Size: 30.3 KB
- Stars: 10
- Watchers: 1
- Forks: 8
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Lorem Ipsum generator for Elixir. (Text and Numbers)
- fucking-awesome-elixir - elixilorem - Lorem Ipsum generator for Elixir. (Text and Numbers)
- awesome-elixir - elixilorem - Lorem Ipsum generator for Elixir. (Text and Numbers)
README
# Elixilorem
[![Master](https://travis-ci.org/mgamini/elixilorem.svg?branch=master)](https://travis-ci.org/mgamini/elixilorem)## Getting Started
It's a Hex.pm package, so drop it in like every other package:```elixir
defp deps do
[{:elixilorem, "~> 0.0.1"}]
end
```## What does it do?
Based upon [Dimsum](https://github.com/ninjascribble/dimsum) by my buddy Scott, it generates filler text for your Elixir project. This is particularly useful for web projects (see [Phoenix](https://github.com/phoenixframework/phoenix)).## Usage
```elixir
iex> Elixilorem.word
"Urna"
iex> Elixilorem.words 3
"Etiam non diam"
iex> Elixilorem.words 3, %{flavor: "cat"}
"Hack up furballs"
iex> Elixilorem.sentence
"Integer iaculis lacinia massa."
iex> Elixilorem.paragraph
"Donec imperdiet. Vestibulum auctor tortor at orci. Integer semper, nisi eget suscipit eleifend, erat nisl hendrerit justo, eget vestibulum lorem justo ac leo. Integer sem velit, pharetra in, fringilla eu, fermentum id, felis. Vestibulum sed felis. In elit. Praesent et pede vel ante dapibus condimentum. Donec magna. Quisque id risus. Mauris vulputate pellentesque leo. Duis vulputate, ligula at venenatis tincidunt, orci nunc interdum leo, ac egestas elit sem ut lacus. Etiam non diam quis arcu egestas commodo. Curabitur nec massa ac massa gravida condimentum. Aenean id libero. Pellentesque vitae tellus. Fusce lectus est, accumsan ac, bibendum sed, porta eget, augue. Etiam faucibus. Quisque tempus purus eu ante."
```##Future features
- HTML format