1
|
1 #!/usr/bin/perl
|
|
2 use strict;
|
|
3 use lib '.';
|
|
4 use config;
|
|
5
|
|
6 use IMPL::Config();
|
|
7 use IMPL::require {
|
|
8 TTSelector => 'IMPL::Web::View::TTFsSelector',
|
|
9 Dumper => 'Data::Dumper'
|
|
10 };
|
|
11
|
|
12
|
|
13 my $selector = TTSelector->new(
|
|
14 isContainer => 1,
|
2
|
15 ext => 'tt',
|
1
|
16 path => IMPL::Config->AppDir('view','site')
|
|
17 );
|
|
18
|
|
19 my $match = $selector->MatchPath(
|
|
20 [
|
2
|
21 {},
|
1
|
22 { name => 'library'},
|
|
23 { name => 'index', class => 'Some::Collection' },
|
|
24 { name => 'compounds' },
|
|
25 { name => 'asd--df-sd-f--ds-we', class => 'Some::Compound' }
|
|
26 ]
|
|
27 );
|
|
28
|
|
29 print Dumper->Dump([$match]); |