Sha256: 1fadaa64a396bad0aef7211cab9563cc32c3709a964f25e223dd808fe081cb7b
Contents?: true
Size: 855 Bytes
Versions: 1
Compression:
Stored size: 855 Bytes
Contents
# nanoc-external This provides a filter that allows [Nanoc](http://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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nanoc-external-1.0.2 | README.md |