Caches remote resources locally
Cachr Plugin for DocPad
This DocPad plugin provides a template helper that will take in a remote URL, download it, and provide the local URL for you.
docpad install cachr
To use, simply wrap any url you want to cache locally within the exposed
@cachr(url) function inside your templates.
Eco example:<img src=""/>
would become:<img src="<%=@cachr('')%>"/>
CoffeeKup example:img src:''
would become:img src:@cachr''
These amazing people are maintaining this project:
- Benjamin Lupton email@example.com (https://github.com/balupton)
No sponsors yet! Will you be the first?
These amazing people have contributed code to this project:
Copyright © Bevry Pty Ltd firstname.lastname@example.org (http://bevry.me)