Skip to content

Instantly share code, notes, and snippets.

@xli
Last active August 29, 2015 14:20
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save xli/425aff0c7714309d272b to your computer and use it in GitHub Desktop.
initialize data attributes for EvaporateJS, should output as a HTML tag attributes for JS usage
bucket = <s3 bucket name>
s3key = <s3 file key> # use a random uniq key
{
"data-aws-id" => ENV["S3_MULTIPART_UPLOAD_ACCESS_KEY_ID"],
"data-bucket" => bucket,
"data-key" => s3key,
"data-signer-url" => <your-data-signer-url>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment