From 8d25800c67ad65defd98771bba2331ee64104f98 Mon Sep 17 00:00:00 2001 From: dakkar Date: Wed, 7 Jan 2009 12:51:13 +0000 Subject: feed fatti, e pure col test manca: testare feed intl, fare feed dei tag, mettere i tag nei feed git-svn-id: svn://luxion/repos/WebCoso/trunk@402 fcb26f47-9200-0410-b104-b98ab5b095f3 --- t/test-site/src/common/base-feed.tt | 18 +++++++++++++++ t/test-site/src/common/du2html.xsl | 16 +++++++++++-- t/test-site/src/common/fillFeed.xsl | 46 ++++++++++++++++++++++++++----------- 3 files changed, 65 insertions(+), 15 deletions(-) create mode 100644 t/test-site/src/common/base-feed.tt (limited to 't/test-site/src/common') diff --git a/t/test-site/src/common/base-feed.tt b/t/test-site/src/common/base-feed.tt new file mode 100644 index 0000000..e2669e3 --- /dev/null +++ b/t/test-site/src/common/base-feed.tt @@ -0,0 +1,18 @@ +[% USE df = DateTime::Format('DateTime::Format::Strptime', + { pattern => '%FT%T%z', + locale => 'en_US', + time_zone => 'GMT' }) -%] +[% USE Dumper -%] +[% docs=changed.nsortf('last_change') -%] + + +[% l=docs.last;df.format(changed.$l.last_change) %] +[% FOR doc IN docs; NEXT UNLESS isLang(language,doc) -%] + + [% IF changed.$doc.creation %][% df.format(changed.$doc.creation) %][% END %] + [% IF changed.$doc.last_change %][% df.format(changed.$doc.last_change) %][% END %] + [% atomIdFor(language,doc,path) %] + [% dstUriFor(doc,path) %] + +[% END -%] + diff --git a/t/test-site/src/common/du2html.xsl b/t/test-site/src/common/du2html.xsl index 88c70b0..8b73a82 100644 --- a/t/test-site/src/common/du2html.xsl +++ b/t/test-site/src/common/du2html.xsl @@ -15,6 +15,15 @@ doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" indent="yes"/> + + @@ -23,14 +32,14 @@ - + - + @@ -39,6 +48,9 @@ + + diff --git a/t/test-site/src/common/fillFeed.xsl b/t/test-site/src/common/fillFeed.xsl index e6077eb..04a6de3 100644 --- a/t/test-site/src/common/fillFeed.xsl +++ b/t/test-site/src/common/fillFeed.xsl @@ -1,7 +1,8 @@ @@ -13,23 +14,42 @@ - - - - - + + + + Gianni Ceccarelli + dakkar@thenautilus.net + + http://www.thenautilus.net/ + + thenautilus.net + + + - - + + + + + + + + - - - - + + + +
+ +
+
+ +
- +
+
\ No newline at end of file -- cgit v1.2.3