annotate Lib/IMPL/Web/TDocument.pm @ 6:e2cd73ccc5bd

DOM In development
author Sergey
date Fri, 14 Aug 2009 16:14:13 +0400
parents
children 94d47b388442
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
6
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
1 package IMPL::Web::TDocument;
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
2 use strict;
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
3 use warnings;
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
4
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
5 use base qw(IMPL::DOM::Node);
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
6 use Template::Context;
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
7 use Template::Provider;
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
8 use IMPL::Class::Property;
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
9 use File::Spec;
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
10
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
11 BEGIN {
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
12 public property Templates => prop_get | owner_set;
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
13 public property Context => prop_get | owner_set;
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
14 }
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
15
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
16 our %CTOR = (
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
17 'IMPL::DOM::Node' => sub { nodeName => 'document' }
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
18 );
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
19
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
20 sub load {
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
21 my ($this,$file) = @_;
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
22
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
23 $file = File::Spec->rel2abs($file);
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
24
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
25 }
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
26
e2cd73ccc5bd DOM In development
Sergey
parents:
diff changeset
27 1;