From 10c6b1f0978710cf5a9f309b6fdcaef922f9b07f Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Fri, 8 Oct 2010 17:02:47 +0200 Subject: Add basic Atom feed writer --- sample/src/entities/index.xml | 6 ++++++ sample/src/index.xml | 10 +++++++++ sample/src/setup.xml | 43 +++++++++++++++++++++++++-------------- sample/src/subdir/Tatry/index.xml | 3 +++ 4 files changed, 47 insertions(+), 15 deletions(-) (limited to 'sample/src') diff --git a/sample/src/entities/index.xml b/sample/src/entities/index.xml index 54bdb2f..44776ca 100644 --- a/sample/src/entities/index.xml +++ b/sample/src/entities/index.xml @@ -11,6 +11,12 @@ META Author → '&' "©" ahoj! ]]> + + Entities → '&' "©" + + + ahoj! ]]> + diff --git a/sample/src/index.xml b/sample/src/index.xml index 92813f1..c5ec849 100644 --- a/sample/src/index.xml +++ b/sample/src/index.xml @@ -15,6 +15,16 @@ This is footnote, text after item list. ]]> + + This is the first attempt of an Atom feed generator built in CGG. For the moment only textual and html records are supported. + This basic type of feed should serve as a "news" feed, to keep visitors notified about site updates. + + + You can add second news for the same page, e.g. when you add new subgallery or new images. + + + This item is missing a timestamp, which is important in Atom feed world. You should not see this record in your feed reader. + diff --git a/sample/src/setup.xml b/sample/src/setup.xml index 88e7eba..80d04da 100644 --- a/sample/src/setup.xml +++ b/sample/src/setup.xml @@ -3,7 +3,7 @@ ../../templates - + template-index.tmpl @@ -18,12 +18,12 @@ styles.css scripts-general.js ]]> - + index.html - + @@ -53,7 +53,7 @@ - + @@ -64,31 +64,33 @@ _thumb _big _orig - + thn_%d_%s - + - - - + + + + John Doe + johndoe@example.com CGG Sample gallery cataract, sample, gallery - + - + - + @@ -102,20 +104,31 @@ And the second line. apple-red.png - + - + - + + + + + + + atomfeed.xml + CGG Sample gallery site news + + http://www.example.com/ + +