# HG changeset patch # User Sergey # Date 1250252053 -14400 # Node ID e2cd73ccc5bdf8f6d65afc1be45c5a4e1b03f4e2 # Parent efa7db58abae5150a865cf75ade3757e4abb0f64 DOM In development diff -r efa7db58abae -r e2cd73ccc5bd Lib/IMPL/DOM/Node.pm --- a/Lib/IMPL/DOM/Node.pm Thu Aug 13 17:33:18 2009 +0400 +++ b/Lib/IMPL/DOM/Node.pm Fri Aug 14 16:14:13 2009 +0400 @@ -19,14 +19,13 @@ public _direct property nodeValue => prop_all; public _direct property childNodes => { get => \&_getChildNodes }; public _direct property parentNode => prop_get ; - private _direct property _propertyMap => prop_all; + private _direct property _propertyMap => prop_get ; } sub CTOR { my ($this,$name) = @_; $this->nodeName($name) or die new IMPL::InvalidArgumentException("A name is required"); - $this->_propertyMap({}); } sub insertNode { @@ -104,9 +103,9 @@ if (@_) { # set - return $this->_propertyMap->{$name} = shift; + return $this->{$_propertyMap}{$name} = shift; } else { - return $this->_propertyMap->{$name}; + return $this->{$_propertyMap}{$name}; } } diff -r efa7db58abae -r e2cd73ccc5bd Lib/IMPL/Web/Document.pm --- a/Lib/IMPL/Web/Document.pm Thu Aug 13 17:33:18 2009 +0400 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,11 +0,0 @@ -package IMPL::Web::Document; -use strict; -use warnings; - -require Exporter; -our @ISA = qw(Exporter); -our @EXPORT_OK = qw(); - - - -1; diff -r efa7db58abae -r e2cd73ccc5bd Lib/IMPL/Web/TDocument.pm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Lib/IMPL/Web/TDocument.pm Fri Aug 14 16:14:13 2009 +0400 @@ -0,0 +1,27 @@ +package IMPL::Web::TDocument; +use strict; +use warnings; + +use base qw(IMPL::DOM::Node); +use Template::Context; +use Template::Provider; +use IMPL::Class::Property; +use File::Spec; + +BEGIN { + public property Templates => prop_get | owner_set; + public property Context => prop_get | owner_set; +} + +our %CTOR = ( + 'IMPL::DOM::Node' => sub { nodeName => 'document' } +); + +sub load { + my ($this,$file) = @_; + + $file = File::Spec->rel2abs($file); + +} + +1;