Caches remote resources locally

npm install docpad-plugin-cachr
1 downloads in the last day
44 downloads in the last week
113 downloads in the last month

Cachr Plugin for DocPad

Build Status NPM version Flattr donate button PayPayl donate button

This DocPad plugin provides a template helper that will take in a remote URL, download it, and provide the local URL for you.


npm install --save docpad-plugin-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('')


You can discover the history inside the file


You can discover the contributing instructions inside the file


Licensed under the incredibly permissive MIT License
Copyright © 2012+ Bevry Pty Ltd

npm loves you