Download (and optionally extract) files into your project before your project starts generating
docpad install downloader
Define the following inside your docpad configuration file, changing the
repo values to what you desire:
module.exports =plugins:downloader:downloads:name: 'Zip Bundle'path: 'src/documents/zip'url: ''decompress: strip: 1name: 'Tar Bundle'path: 'src/documents/tar'url: ''decompress: strip: 1name: 'Gist File'path: 'src/documents/a.html.md'url: ''
Available download options:
namestring, name of the download, for logging purposes only
pathstring, path that the completed download is placed
urlstring, url the download is retrieved from
decompresstrue or object, if object it is the options sent to decompress
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Unless stated otherwise all works are:
- Copyright © 2012+ Bevry Pty Ltd
and licensed under: