I had a site that needed to link to files on S3 and will eventually have to link to them on CloudFront (Amazon's CDN). Instead of having to always remember the URL or have the URL included in all of my content's frontmatter, I wrote an addon that allows you to:

  1. define a master base URL
  2. define different config groups each with their own paths relative to the base and file extensions
  3. use a tag that builds your asset's URLs for you

I just updated the plugin to allow for easier group setting and unlimited attributes on generated tags (Oh, I forgot to mention...it can generate js, css and img tags just like Statamic's built-in theme helpers).

Check it out: https://github.com/raygesualdo/statamic-earl