Method: Hanami::Config#assets

Defined in:
lib/hanami/config.rb

#assetsHanami::Config::Assets, Hanami::Config::NullConfig (readonly)

Returns the app’s views config, or a null config if hanami-view is not bundled.

Examples:

When hanami-view is bundled

config.views.paths # => [...]

When hanami-view is not bundled

config.views.paths # => NoMethodError

Returns:

Since:

  • 2.1.0

[View source]

296
297
298
# File 'lib/hanami/config.rb', line 296

def assets
  @assets
end