diff options
author | christoph <christoph@debian.uxul.homelinux.org> | 2009-02-21 02:26:59 +0100 |
---|---|---|
committer | christoph <christoph@debian.uxul.homelinux.org> | 2009-02-21 02:26:59 +0100 |
commit | 2c2e8de50c5b362891a40a1a727262d742b97c21 (patch) | |
tree | 90c463fa6343055b7e5773b5d0915e1b206a19c4 /opmlclass.clj | |
parent | 5b3fac97c77c5c9945d08d98cb19251ca7736980 (diff) |
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.
Diffstat (limited to 'opmlclass.clj')
-rw-r--r-- | opmlclass.clj | 18 |
1 files changed, 18 insertions, 0 deletions
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 |