From 942a5b2c128ebf03d181aef47e42b08f7971c0ee Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 27 Feb 2013 14:25:38 +0100 Subject: [PATCH] SL::{Controller::Base,Presenter}->render: Dokumentation --- SL/Controller/Base.pm | 5 +++++ SL/Presenter.pm | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/SL/Controller/Base.pm b/SL/Controller/Base.pm index 01e2db4f0..2d86f0f96 100644 --- a/SL/Controller/Base.pm +++ b/SL/Controller/Base.pm @@ -381,6 +381,11 @@ If C<$template> is a reference to a scalar then the referenced scalar's content is used as the content to process. The C option is not considered in this case. +C<$template> can also be an instance of L +or a reference to such an instance. Both of these cases are handled +the same way as if C<$template> were a reference to a scalar: its +content is processed, and C is not considered. + Other reference types, unknown options and unknown arguments to the C option cause the function to L. diff --git a/SL/Presenter.pm b/SL/Presenter.pm index 4547ec746..f328cce9e 100644 --- a/SL/Presenter.pm +++ b/SL/Presenter.pm @@ -197,6 +197,11 @@ If C<$template> is a reference to a scalar then the referenced scalar's content is used as the content to process. The C option is not considered in this case. +C<$template> can also be an instance of L +or a reference to such an instance. Both of these cases are handled +the same way as if C<$template> were a reference to a scalar: its +content is processed, and C is not considered. + Other reference types, unknown options and unknown arguments to the C option cause the function to L. -- 2.20.1