/[Frey]/trunk/lib/ExtJS/Portal.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Contents of /trunk/lib/ExtJS/Portal.pm

Parent Directory Parent Directory | Revision Log Revision Log


Revision 455 - (show annotations)
Wed Nov 19 15:28:23 2008 UTC (14 years, 2 months ago) by dpavlin
File size: 691 byte(s)
rename invocable events with prefix as_ with fallback in Frey::Web

This started with brute-force rename using:

  perl -p -i -n -e 's/sub markup/sub as_markup/'  `grep -lr 'sub markup' lib t`
  perl -p -i -n -e 's/sub data/sub as_data/'      `grep -lr 'sub data' lib t`
  perl -p -i -n -e 's/sub sponge/sub as_sponge/'  `grep -lr 'sub sponge' lib t`

  perl -p -i -n -e 's/->markup/->as_markup/'      `grep -lr -- '->markup' lib t`
  perl -p -i -n -e 's/->data/->as_data/'          `grep -lr -- '->data' lib t`
  perl -p -i -n -e 's/->sponge/->as_sponge/'      `grep -lr -- '->sponge' lib t`

  perl -p -i -n -e 's!/markup!/as_markup!'        `grep -lr -- '/markup' lib t etc`
  perl -p -i -n -e 's!/data!/as_data!'            `grep -lr -- '/data' lib t etc`
  perl -p -i -n -e 's!/sponge!/as_sponge!'        `grep -lr -- '/sponge' lib t etc`

1 package ExtJS::Portal;
2 use Moose;
3
4 extends 'Frey';
5 with 'Frey::Web';
6
7 our $ext = '/static/js/ext-2.1';
8
9 sub depends {
10 my $self = shift;
11
12 $self->add_head( "$ext/resources/css/ext-all.css" );
13 $self->add_head( "$ext/$_" ) foreach ( qw{
14 adapter/ext/ext-base.js
15 ext-all.js
16 });
17
18 $self->add_head( "$ext/examples/portal/$_" ) foreach ( qw{
19 Portal.js
20 PortalColumn.js
21 Portlet.js
22 sample.js
23 sample-grid.js
24 portal.css
25 sample.css
26 });
27
28 }
29
30 sub as_markup {
31 my $self = shift;
32 $self->page(
33 title => "Custom Layouts and Containers - Portal Sample",
34 body => qq|
35 <script type="text/javascript" src="$ext/examples/shared/examples.js"></script><!-- EXAMPLES -->
36 |,
37 );
38 }
39
40 1;

  ViewVC Help
Powered by ViewVC 1.1.26