Dust.FileRef (dustlayer v0.1.1)

Copy Markdown View Source

Reference to a file stored in Dust. Returned by Dust.get/2 when the value is a file.

Summary

Functions

Download the file to a local path.

Fetch the file content as binary over HTTP.

Create a FileRef from a raw map (as stored in cache).

Functions

download(ref, path)

Download the file to a local path.

fetch(ref)

Fetch the file content as binary over HTTP.

from_map(map, opts \\ [])

Create a FileRef from a raw map (as stored in cache).