StaticPipes Documentation

staticpipes.pipes.process

Class: PipeProcess

A pipeline that takes files and passes them through a series of processes you define. This allows one source file to go through multiple processes before being put in the build site.

Only works on files with the right extensions not already excluded by earlier pipes.

For processes, see classes in staticpipes.processes package

Pass:

  • extensions - a list of file extensions that will be processed eg ["js", "css", "html"]. If not set, all files will be processed.

  • directories - Only items in these directories and their children will be processed.

  • processors - a list of instances of processors from the staticpipes.pipes.processors package

  • binary_content - should we handle content as a binary? Defaults to False, in which case it's handled as a string.

Function: build_file

No Info.

Function: file_changed_during_watch

Called once for every file as it changes during the watch stage, unless an earlier pipeline has excluded this file.

Function: prepare_file

No Info.

Function: start_prepare

No Info.