aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Reaction/UI/View.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Reaction/UI/View.pm')
-rw-r--r--lib/Reaction/UI/View.pm20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/Reaction/UI/View.pm b/lib/Reaction/UI/View.pm
index 77d0699..1f7c00c 100644
--- a/lib/Reaction/UI/View.pm
+++ b/lib/Reaction/UI/View.pm
@@ -19,6 +19,16 @@ class View which {
has 'rendering_context_class' => (is => 'ro', lazy_build => 1);
+ implements '_build_layout_set_class' => as {
+ my ($self) = @_;
+ return $self->find_related_class('LayoutSet');
+ };
+
+ implements '_build_rendering_context_class' => as {
+ my ($self) = @_;
+ return $self->find_related_class('RenderingContext');
+ };
+
implements 'COMPONENT' => as {
my ($class, $app, $args) = @_;
return $class->new(%{$args||{}}, app => $app);
@@ -118,11 +128,6 @@ class View which {
confess "Unable to find related ${rel} class for ${own_class}";
};
- implements 'build_layout_set_class' => as {
- my ($self) = @_;
- return $self->find_related_class('LayoutSet');
- };
-
implements 'layout_set_args_for' => as {
my ($self, $name) = @_;
return (name => $name, search_path => $self->layout_search_path);
@@ -146,11 +151,6 @@ class View which {
);
};
- implements 'build_rendering_context_class' => as {
- my ($self) = @_;
- return $self->find_related_class('RenderingContext');
- };
-
implements 'rendering_context_args_for' => as {
return ();
};