StaticPipes Documentation

staticpipes.pipes.copy

Class: PipeCopy

A pipline that just copies files from the source directory to the build site (unless already excluded). The simplest pipeline you can get!

Pass:

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

  • source_sub_directory - if your files are in a subdirectory pass that here. Any files outside that will be ignored and the subdirectory will not appear in the build directory. eg pass "assets" and "assets/main.css" will appear in build site as "main.css"

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

Function: build_file

No Info.

Function: file_changed_during_watch

No Info.