Sha256: df573895cd21a67220bb7e27cfdcdc1a5e088063c3fd43be52dbb9459a9e1ce2

Contents?: true

Size: 856 Bytes

Versions: 3

Compression:

Stored size: 856 Bytes

Contents

# nanoc-external

This provides a filter that allows [Nanoc](https://nanoc.ws) to process content by executing an external program.

## Installation

Add `nanoc-external` to the `nanoc` group of your Gemfile:

```ruby
group :nanoc do
  gem 'nanoc-external'
end
```

## Usage

Call the `:external` filter and pass the command to execute as the `:exec` argument. For example:

```ruby
filter :external, exec: 'wc'
```

The external command must receive input from standard input (“stdin”) and must send its output to standard out (“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)
```

You can also pass the full path of the executable:

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
nanoc-external-1.0.5 README.md
nanoc-external-1.0.4 README.md
nanoc-external-1.0.3 README.md