View Source mix compile.fortune_compiler (fortune v0.1.1)

Compile fortune files

This compiler parses specially formatted files, indexes them, and saves the results to the priv/fortune directory. To be precise, this does what the Unix strfile command does.

By default, input files should be placed in the fortune directory in a project. Each fortune (aka string) is separated by a % line like the following:

My first fortune
%
Another string or fortune
and this can be multiple lines too.
%
The last string

Configuration

  • :fortunec_paths - directories to find fortune files. Defaults to ["fortune"]