Build Status Code Climate Coverage Status

nanoc-external

This provides a filter that allows nanoc to process content by executing an external program.

Maintained by lifepillar.

Installation

gem install nanoc-external

Usage

filter :external, :exec => 'command-name'

The only requirement is that the external command must be able to receive its input from STDIN and it must send its output to STDOUT.

Options passed to this filter will be passed on to the external command. For example:

filter :external, exec: 'multimarkdown', options: => %w(--accept --mask --labels --smart)

If the executable is not in your PATH, use its full path:

filter :external, exec: '/opt/local/bin/htmlcompressor'