Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Caches remote resources locally

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 src
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .npmignore
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 CONTRIBUTING.md
Octocat-spinner-32 Cakefile
Octocat-spinner-32 HISTORY.md
Octocat-spinner-32 LICENSE.md
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

Cachr Plugin for DocPad

Build Status NPM version Dependency Status Development Dependency Status
Gittip donate button Flattr donate button PayPayl donate button BitCoin 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.

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?

Gittip donate button Flattr donate button PayPayl donate button BitCoin donate 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.