diff options
author | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-12-20 21:39:06 +0000 |
---|---|---|
committer | matthewt <matthewt@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2007-12-20 21:39:06 +0000 |
commit | cfadd2f304c56a9510f1e18f02febb8694890b47 (patch) | |
tree | de5e5d7a6c196c815d7de0785dbbc20816462289 /lib/ComponentUI | |
parent | 5b6b308142924d9bff7997a4f63b4e1f5e2daa73 (diff) | |
parent | f2fef590a7283ea919bdaa51bac9d433e8785a09 (diff) | |
download | reaction-cfadd2f304c56a9510f1e18f02febb8694890b47.tar.gz reaction-cfadd2f304c56a9510f1e18f02febb8694890b47.zip |
r72431@cain (orig r414): matthewt | 2007-11-26 20:11:29 +0000
root of componentUI renders
Diffstat (limited to 'lib/ComponentUI')
-rw-r--r-- | lib/ComponentUI/View/Site/Widget/Index.pm | 2 | ||||
-rw-r--r-- | lib/ComponentUI/View/Site/Widget/Layout.pm | 12 |
2 files changed, 6 insertions, 8 deletions
diff --git a/lib/ComponentUI/View/Site/Widget/Index.pm b/lib/ComponentUI/View/Site/Widget/Index.pm index 0d3df27..b7f0372 100644 --- a/lib/ComponentUI/View/Site/Widget/Index.pm +++ b/lib/ComponentUI/View/Site/Widget/Index.pm @@ -4,8 +4,6 @@ use Reaction::UI::WidgetClass; class Index which { - fragment widget [ string {"DUMMY"} ]; - }; 1; diff --git a/lib/ComponentUI/View/Site/Widget/Layout.pm b/lib/ComponentUI/View/Site/Widget/Layout.pm index ad1953b..d33fa31 100644 --- a/lib/ComponentUI/View/Site/Widget/Layout.pm +++ b/lib/ComponentUI/View/Site/Widget/Layout.pm @@ -4,12 +4,12 @@ use Reaction::UI::WidgetClass; class Layout which { - fragment widget [ qw(menu sidebar header main_content) ]; - - fragment menu [ string { "DUMMY" } ]; - fragment sidebar [ string { "Sidebar Shit" } ]; - fragment header [ string { "DUMMY" } ]; - fragment main_content [ viewport => over func('viewport', 'inner')]; + implements fragment main_content { + if (my $inner = $_{viewport}->inner) { + arg '_' => $inner; + render 'viewport'; + } + }; }; |