line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
1
|
|
|
1
|
|
1329
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
32
|
|
2
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
64
|
|
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
package XUL::App::View::Base; |
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
4
|
use base 'Template::Declare'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
71
|
|
7
|
1
|
|
|
1
|
|
4
|
use Template::Declare::Tags 'XUL'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
10
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
$::XUL_NAME_SPACE = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"; |
10
|
|
|
|
|
|
|
$::HTML_NAME_SPACE = "http://www.w3.org/1999/xhtml"; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
template header => sub { |
13
|
|
|
|
|
|
|
my ($self, $encoding) = @_; |
14
|
|
|
|
|
|
|
$encoding ||= 'UTF-8'; |
15
|
|
|
|
|
|
|
xml_decl { 'xml', version => '1.0', encoding => $encoding }; |
16
|
|
|
|
|
|
|
xml_decl { 'xml-stylesheet', |
17
|
|
|
|
|
|
|
href => "chrome://global/skin/", |
18
|
|
|
|
|
|
|
type => "text/css" |
19
|
|
|
|
|
|
|
}; |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
# stub |
23
|
|
|
|
|
|
|
template main => sub { |
24
|
|
|
|
|
|
|
show 'header'; |
25
|
|
|
|
|
|
|
window { |
26
|
|
|
|
|
|
|
attr { |
27
|
|
|
|
|
|
|
id => 'xul-app-default', |
28
|
|
|
|
|
|
|
xmlns => $::XUL_NAME_SPACE, |
29
|
|
|
|
|
|
|
'xmlns:html' => $::HTML_NAME_SPACE, |
30
|
|
|
|
|
|
|
width => 600, |
31
|
|
|
|
|
|
|
height => 800, |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
label { "Welcome to XUL::App!" } |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
}; |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|