Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

This is a content handler for the website generation tool punch. It allows for files being put into the content folder and be copied into the output directory.

Notifications You must be signed in to change notification settings

ghost23/punch-files-handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#Content handler plugin for punch site generation tool This plugin is no longer meant to be generic. It is used in a special project and does very individual things. This plugin allows you to put file folders into your content directory, in order for those files to be deployed to your output directory.

Install via

npm install punch-files-handler

In order to use this, you must add these things to your punch config:

"files_dir": ["images", "videos"],

"plugins": {
	"content_handler":  "punch-files-handler"
}

files_dir is an array, that contains folder names, which you define as folders that contain files, which should be copied into the resulting output directory. These folders can also be subfolders somewhere in your content directory hierarchy. So "images" will be found in "\images" as well as in "\somesection\subsection\images". So please only provide simple folder names in the files_dir array, not paths.

Note: Everything within such folders will be simply copied into the output directory and NOT be processed any further by punch

Also note, that this content handler plugin is used INSTEAD the original content handler, if you include it as the content_handler plugin.

This plugin is based on the original content handler of punch (version 0.5.44) and I added the file folder functionality.

About

This is a content handler for the website generation tool punch. It allows for files being put into the content folder and be copied into the output directory.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published