module
StaticAssets::Store
Overview
Storage backend abstraction for StaticAssets::Handler.
Direct including types
Defined in:
static_assets/store.crInstance Method Summary
-
#directory?(relative_path : String) : Bool
Returns
trueifrelative_pathresolves to a directory (forindex_filefallback). -
#resolve(relative_path : String, accept_encoding : String | Nil, precompressed : Bool = true) : ResolvedAsset | Nil
Resolves
relative_path(slash-delimited, without leading/) and selects the preferred representation according toaccept_encoding.
Instance Method Detail
def directory?(relative_path : String) : Bool
#
Returns true if relative_path resolves to a directory (for index_file fallback).
abstract
def resolve(relative_path : String, accept_encoding : String | Nil, precompressed : Bool = true) : ResolvedAsset | Nil
#
Resolves relative_path (slash-delimited, without leading /) and selects the
preferred representation according to accept_encoding.