Home

Awesome

lein-misaki

A Leiningen plugin for Misaki, a Jekyll inspired static site generator

Usage

Create a mysite folder and put a _config.clj file in it. The minimal configuration is an empty clojure map, i.e. {}

Read the Misaki default structure to learn how to lay down your site sources, or peek at the sample to see all the available options.

Put [lein-misaki "0.1.5-SNAPSHOT"] into the :plugins vector of your :user profile, or if you are on Leiningen 1.x do lein plugin install lein-misaki 0.1.5-SNAPSHOT.

You can launch with

$ lein misaki

to compile the static site resources and serve it with an embedded Jetty, or

$ lein misaki --compile

to only compile the static site.

Custom misaki plugins

When using lein-misaki you don't have an active leiningen project to refer to. As such, you need a way to include compiler plugins in the current classpath. With lein-misaki you can specify the following entry in yout profiles.clj to load custom plugins into the classpath:

{
  ...
  :misaki-dependencies [[misaki-clostache "0.0.1-alpha"]]
}

License

Copyright © 2012 Carlo Sciolla

Distributed under the Eclipse Public License, the same as Clojure.