controller
and action
arguments do not give you enough flexibility,
you can use the template
argument that is available for renderView().returnAs
argument comes in
handy. It's available on both renderView() and renderPartial().
Setting returnAs
to string
will return the result to you instead of placing
it in the internal Wheels variable.cache=true
(to use
the default cache time set in config/settings.cfm
) or cache=x
where x
is
the number of minutes you want to cache the content for. Keep in mind that this
caching respects the global setting set for it in your configuration files so
normally no pages will be cached when in Design or Development mode.layout
. Using this
you can wrap your content with common header/footer style code. This is such an
important concept though so we'll cover all the details of it in the chapter
called Using Layouts.