From 2c2e8de50c5b362891a40a1a727262d742b97c21 Mon Sep 17 00:00:00 2001 From: christoph Date: Sat, 21 Feb 2009 02:26:59 +0100 Subject: Adding an OPML-Export /feedlist.opml which is session-aware. Unfortunately I couldnt create a class fitting to StringTemplate's needs, unfortunately Clojure seems not to be able to create Interfaces on-the-fly and one has to compile them before using them. I couldnt manage to do so, so I decided to create an OPML-String directly. So far, this works. Anyway, added opml.st and opmlclass.clj - which somehow reflect my trial of doing this. --- opmlclass.clj | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 opmlclass.clj (limited to 'opmlclass.clj') diff --git a/opmlclass.clj b/opmlclass.clj new file mode 100644 index 0000000..4486580 --- /dev/null +++ b/opmlclass.clj @@ -0,0 +1,18 @@ +(ns cljssss-g + (require [clojure.xml :as xml] + [clojure.contrib.sql :as sql] + compojure) + (import (org.antlr.stringtemplate StringTemplateGroup) + (com.sun.syndication.io SyndFeedInput XmlReader) + (com.sun.syndication.feed.synd SyndFeed SyndEntry) + (java.net URL)) + (use compojure)) + + +(gen-interface + :name opmliface + :prefix "opml-" + :init init + :methods [[getXmlurl [] String] + [getHtmlurl [] String] + [getText [] String]]) \ No newline at end of file -- cgit v1.2.3