diff options
author | timbunce <timbunce@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-03-26 16:31:34 +0000 |
---|---|---|
committer | timbunce <timbunce@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-03-26 16:31:34 +0000 |
commit | 0fd7c39ddeef6a882cd3e5e70f863d9f3d6e5994 (patch) | |
tree | 6c84ebdbf236c0243d636ec33600d630510ce5a2 /lib/Reaction/Manual | |
parent | 0a0813ddbde37da8fa5268f091c943f3fde3ba32 (diff) | |
download | reaction-0fd7c39ddeef6a882cd3e5e70f863d9f3d6e5994.tar.gz reaction-0fd7c39ddeef6a882cd3e5e70f863d9f3d6e5994.zip |
More items for glossary.
Improve layout for RenderPage manual and add a few notes.
Diffstat (limited to 'lib/Reaction/Manual')
-rw-r--r-- | lib/Reaction/Manual/Glossary.pod | 6 | ||||
-rw-r--r-- | lib/Reaction/Manual/RenderPage.pod | 51 |
2 files changed, 37 insertions, 20 deletions
diff --git a/lib/Reaction/Manual/Glossary.pod b/lib/Reaction/Manual/Glossary.pod index 7fd4d22..d4cab76 100644 --- a/lib/Reaction/Manual/Glossary.pod +++ b/lib/Reaction/Manual/Glossary.pod @@ -8,10 +8,14 @@ Reaction::Manual::Glossary - Terms and Definitions used in Reaction =head3 Domain Model +=head3 Focus Stack + =head3 Interface Model =head3 Layout +=head3 LayoutSet + =head3 ListView =head3 MVC @@ -22,6 +26,8 @@ Model-View-Controller - a high-level software design pattern, which focuses on s A software design pattern in which one +=head3 RenderingContext + =head3 Role A particular interface that a class implements. Here, Role is used in the sense of Moose::Role; this same concept is sometimes called a Mix-In Class or a Decorator pattern. diff --git a/lib/Reaction/Manual/RenderPage.pod b/lib/Reaction/Manual/RenderPage.pod index c0b92f8..2c2a19d 100644 --- a/lib/Reaction/Manual/RenderPage.pod +++ b/lib/Reaction/Manual/RenderPage.pod @@ -3,37 +3,48 @@ =head2 Or, how to track why your page failed to render -Catalyst's C<end> action is supplied by -L<Reaction::UI::Controller::Root>, which your C<Root> controller -should inherit from, or at least the root controller of the part of -your application that is using Reaction. The C<end> action calls -L<Reaction::UI::Window/flush> which in turn calls -L<Reaction::UI::View/render_window>. +Catalyst's C<begin> and C<end> actions are supplied by +L<Reaction::UI::Controller::Root>, which your C<Root> controller should inherit +from, or at least the root controller of the part of your application that is +using Reaction. + +The C<begin> action creates a new L<Reaction::UI::Window> and stores it in $c->stash->{window}. +The C<end> action calls the flush() method on the stashed window object. +L<Reaction::UI::Window/flush> then calls L<Reaction::UI::View/render_window> +on the window's view. The View first fetches the root ViewPort from the Window's stack and creates a RenderingContext. The layout is chosen based on the ViewPort name or though the ViewPort's C<layout> attribute. The Widget is then used to render the content via the RenderingContext. +Is your head spinning yet? + Ingredients used: -* LayoutSet class: Reaction::UI::LayoutSet -* RenderingContext class: Reaction::UI::RenderingContext::TT + * A Reaction::UI::Skin object built from: - * The skin_name set on your View - * The View object - * The skin_base_dir (MyApp/share/skin) - * The share/skin/defaults.conf + share/skin/<my_skin>/skin.conf + + - The skin_name set on your View + - The View object + - The skin_base_dir (MyApp/share/skin) + - The share/skin/defaults.conf + share/skin/<my_skin>/skin.conf + * A Reaction::UI::LayoutSet object built from: - * The layoutset file itself, found in the share/skin/<my_skin>/layout directory - or the share/skin/default/layout directory. - * The Skin object + + - The layoutset file itself, found in the share/skin/<my_skin>/layout directory + or the share/skin/default/layout directory. + - The Skin object + * A Reaction::UI::Widget object built from: - * It's class, determined from the name of the ViewPort or read from the - layoutset file, and found in the widget_search_path. - * The View object - * The LayoutSet object + + - It's class, determined from the name of the ViewPort or read from the + layoutset file, and found in the widget_search_path. + - The View object + - The LayoutSet object + * A Reaction::UI::RenderingContext::TT object built from: - * Nothing + + - Nothing To render the window the correct Reaction::UI::Widget object is retrieved via the LayoutSet for the root ViewPort of the page. |