Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Caches remote resources locally
branch: master
Failed to load latest commit information.
src v2.3.0 August 8, 2014
test v2.3.0 August 8, 2014
.editorconfig Add .editorconfig (v1.3.18 from bevry/base)
.gitignore updated base files
.jshintrc v2.2.3 August 8, 2014
.npmignore updated base files
.travis.yml updated base files
CONTRIBUTING.md v2.2.3 August 8, 2014
Cakefile updated base files
HISTORY.md
LICENSE.md Updated meta files
README.md updated base files
coffeelint.json v2.2.3 August 8, 2014
package.json updated base files

README.md

Cachr Plugin for DocPad

Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
Gratipay donate button Flattr donate button PayPayl donate button BitCoin donate button Wishlist browse button

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

Install

docpad install cachr

Usage

To use, simply wrap any url you want to cache locally within the exposed @cachr(url) function inside your templates.

  • Eco example:

    <img src="http://somewebsite.com/someimage.gif"/>

    would become:

    <img src="<%=@cachr('http://somewebsite.com/someimage.gif')%>"/>
  • CoffeeKup example:

    img src:'http://somewebsite.com/someimage.gif'

    would become:

    img src:@cachr('http://somewebsite.com/someimage.gif')

History

Discover the change history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

Gratipay donate button Flattr donate button PayPayl donate button BitCoin donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Become a contributor!

License

Licensed under the incredibly permissive MIT license

Copyright © Bevry Pty Ltd us@bevry.me (http://bevry.me)

Something went wrong with that request. Please try again.