class

Marten::Conf::GlobalSettings::Assets

Inherits Reference / Object

Allows to configure assets-related settings.

Instance methods

app_dirs

Returns a boolean indicating whether assets should be looked for inside installed applications.

Source
app_dirs=(app_dirs : Bool)

Allows to set whether assets should be looked for inside installed applications.

Source
app_dirs?

Returns a boolean indicating whether assets should be looked for inside installed applications.

Source
dirs

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.

Source
dirs=(dirs : Array(Path | String | Symbol))

Allows to set the directories where assets should be looked for.

Source
manifests

Returns the configured paths to manifest JSON files to use to resolve assets URLs.

Source
manifests=(manifests : Array(Path | String | Symbol))

Allows to set paths to manifest JSON files to use in order to resolve asset URLs.

Source
max_age

Returns the Cache-Control header max-age directive value (defaults to 3600 seconds).

Source
max_age=(max_age : Int64)

Allows to set the Cache-Control header max-age directive value.

Source
root

Returns the absolute path where collected assets will be persisted.

Source
root=(dir : Path | String | Symbol | Nil)

Allows to set the absolute path where collected assets will be persisted.

Source
storage

Returns the storage used to collect and persist assets.

Source
storage=(storage : Core::Storage::Base | Nil)

Allows to set the the storage used to collect and persist assets.

Source
url

Returns the base URL to use when exposing asset URLs.

Source
url=(url : String)

Allows to set the base URL to use when exposing asset URLs.

Source