-
Notifications
You must be signed in to change notification settings - Fork 7
Views
Flame::Render uses Tilt,
so you can use any template engine supported by it.
There is automatic detection (by file extensions).
Tilt's options can be passed via :tilt render option.
Caching enabled in the production environment and disabled in the development.
Methods for rendering: view (recommended for controller's methods)
and render (recommended for partial renders at view, but it's just an alias for view).
They receive file-name as a String or Symbol, and render options.
Layouts are supported by default (if a layout.* file found), including nested ones,
but can be specified (or disabled) by :layout render option.
Partials should start with _ (_part.erb) and then layouts for them are disabled by default.
All controllers methods are available from views
(controller is a scope by default, but can be changed by :scope option of render methods).