Sha256: 65d206a0ad7070ddcdd412014bdbc96f3c8e544175e9aa99133afcba1798ba8f
Contents?: true
Size: 1.11 KB
Versions: 2
Compression:
Stored size: 1.11 KB
Contents
[![Build Status](https://travis-ci.org/nanoc/nanoc-external.png)](https://travis-ci.org/nanoc/nanoc-external) [![Code Climate](https://codeclimate.com/github/nanoc/nanoc-external.png)](https://codeclimate.com/github/nanoc/nanoc-external) [![Coverage Status](https://coveralls.io/repos/nanoc/nanoc-external/badge.png?branch=master)](https://coveralls.io/r/nanoc/nanoc-external) # nanoc-external This provides a filter that allows [nanoc](http://nanoc.ws) to process content by executing an external program. Maintained by [lifepillar](https://github.com/lifepillar). ## Installation `gem install nanoc-external` ## Usage ```ruby 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: ```ruby filter :external, exec: 'multimarkdown', options: => %w(--accept --mask --labels --smart) ``` If the executable is not in your PATH, use its full path: ```ruby filter :external, exec: '/opt/local/bin/htmlcompressor' ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
nanoc-external-1.0.1 | README.md |
nanoc-external-1.0.0 | README.md |