class Marten::Conf::GlobalSettings::Assets
- Marten::Conf::GlobalSettings::Assets
- Reference
- Object
Overview
Allows to configure assets-related settings.
Defined in:
marten/conf/global_settings/assets.crInstance Method Summary
-
#app_dirs : Bool
Returns a boolean indicating whether assets should be looked for inside installed applications.
-
#app_dirs=(app_dirs : Bool)
Allows to set whether assets should be looked for inside installed applications.
-
#dirs : Array(String)
Returns an array of directories where assets should be looked for.
-
#dirs=(dirs : Array(Path | String | Symbol))
Allows to set the directories where assets should be looked for.
-
#manifests : Array(String)
Returns the configured paths to manifest JSON files to use to resolve assets URLs.
-
#manifests=(manifests : Array(Path | String | Symbol))
Allows to set paths to manifest JSON files to use in order to resolve asset URLs.
-
#max_age : Int64
Returns the Cache-Control header max-age directive value (defaults to 3600 seconds).
-
#max_age=(max_age : Int64)
Allows to set the Cache-Control header max-age directive value.
-
#root : String
Returns the absolute path where collected assets will be persisted.
-
#root=(dir : Path | String | Symbol | Nil)
Allows to set the absolute path where collected assets will be persisted.
-
#storage : Marten::Core::Storage::Base?
Returns the storage used to collect and persist assets.
-
#storage=(storage : Core::Storage::Base | Nil)
Allows to set the the storage used to collect and persist assets.
-
#url : String
Returns the base URL to use when exposing asset URLs.
-
#url=(url : String)
Allows to set the base URL to use when exposing asset URLs.
Instance Method Detail
Returns a boolean indicating whether assets should be looked for inside installed applications.
Allows to set whether assets should be looked for inside installed applications.
Returns an array of directories where assets should be looked for.
The order of these directories is important as it defines the order in which assets are searched for.
Allows to set the directories where assets should be looked for.
Returns the configured paths to manifest JSON files to use to resolve assets URLs.
Allows to set paths to manifest JSON files to use in order to resolve asset URLs.
Returns the Cache-Control header max-age directive value (defaults to 3600 seconds).
Allows to set the absolute path where collected assets will be persisted.
Returns the storage used to collect and persist assets.
Allows to set the the storage used to collect and persist assets.