coil alternatives and similar packages
Based on the "Static Page Generation" category
Do you think we are missing an alternative of coil or a related project?
Coil is a minimalistic static content engine written in elixir.
You must have the latest stable version of elixir installed, v0.12.5 as of the writing of this.
Clone the repo, fetch dependencies and compile:
git clone https://github.com/badosu/coil cd coil && mix do deps.get, compile
Bootstrap a sample coil blog:
mix coil ../blog cd ../blog && mix deps.get
Apply your configuration:
Add an article:
Run (on port 8080):
PORT=8080 mix run --no-halt.
Deploy to Heroku:
heroku create --buildpack "https://github.com/goshakkk/heroku-buildpack-elixir.git" git push heroku master
If you have a
mix.exs file requiring the coil lib properly, like
this one, you have only to follow the structure
below to get it working:
. |-- articles | `-- YYYY-mm-dd-article-title.md |-- assets | `-- example.css |-- config.yml |-- mix.exs |-- pages | `-- title.md `-- templates |-- archives.html.eex |-- article.html.eex |-- index.html.eex |-- index.xml.eex |-- layout.html.eex `-- page.html.eex
- RSS feed:
Templates are embedded elixir files (see the EEx docs), and can be customized to suit your design:
layout.html.eexThe template in which all other templates are embedded
index.html.eexRenders the home page
article.html.eexRenders the article page
page.html.eexRenders the page page
archives.html.eexRenders the archives page
index.xml.eexRenders the rss feed
The MIT License, see LICENSE
*Note that all licence references and agreements mentioned in the coil README section above are relevant to that project's source code only.