Method: Hanami::Config#views

Defined in:
lib/hanami/config.rb

#viewsHanami::Config::Views, 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]

282
283
284
# File 'lib/hanami/config.rb', line 282

def views
  @views
end