const mixinafColdFeet::ColdFeet
afColdFeet::ColdFeet
(Service) - Creates client-side asset URIs.
- assetFile
abstract Uri assetFile(File asset)
Converts the given asset File into a cachable
Cold Feet
URI that can be used by clients / browsers.The asset must exist on the file system and be mapped by BedSheet's
FileHandler
service.- assetUri
abstract Uri assetUri(Uri uri)
Converts the given client URI into a cachable
Cold Feet
URI that can be used by clients / browsers. Essentially this adds the prefix and checksum to the given URI, as well as checking for URI validity and that the corresponding file exists.The URI must be mapped by BedSheet's
FileHandler
service.