exhibition.filters.external module

External command filter

Use an external command to process a file, like so:

filter: exhibition.filters.external
external_cmd: sed 's/this/that/g' {INPUT} > {OUTPUT}
exhibition.filters.external.content_filter(node, content)[source]

This is the actual content filter called by exhibition.main.Node on appropiate nodes.

Parameters
  • node – The node being rendered

  • content – The content of the node, stripped of any YAML frontmatter