changeset 76:b1652a158b2b

Web::DOM
author wizard
date Wed, 31 Mar 2010 16:17:13 +0400
parents 915df8fcd16f
children 9d24db321029
files Lib/IMPL/Web/TDocument.pm
diffstat 1 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Lib/IMPL/Web/TDocument.pm	Tue Mar 30 20:31:36 2010 +0400
+++ b/Lib/IMPL/Web/TDocument.pm	Wed Mar 31 16:17:13 2010 +0400
@@ -146,4 +146,27 @@
 
 =back
 
+=head1 DOM
+
+=begin text
+
+[% table = document.tables.Add('env') %]
+
+[% FOEACH item in document.result %]
+	[% table.rows.Add( item.get('name','value') ) %]
+[% END %]
+
+[% form = document.forms.Add('login') %]
+
+[% form.loadValues( {user => 'guest', password => ''} ) %]
+
+[% form.template = BLOCK %]
+	[% %]
+	[% END %]
+[% END %]
+	
+
+=end text
+
+
 =cut