about summary refs log tree commit homepage
path: root/lib/PublicInbox/View.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-06 06:52:18 +0000
committerEric Wong <e@80x24.org>2014-04-06 06:52:18 +0000
commit630bddde22338179f23be5143ca14135383826b6 (patch)
treeaae7790f24177f268a1d3419ba79ac6efded9aa1 /lib/PublicInbox/View.pm
parent127cde0f48d802f324c170e97477203e5bf8ad73 (diff)
downloadpublic-inbox-630bddde22338179f23be5143ca14135383826b6.tar.gz
This reduces duplicated/similar code and hopefully makes things more
consistent.
Diffstat (limited to 'lib/PublicInbox/View.pm')
-rw-r--r--lib/PublicInbox/View.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/PublicInbox/View.pm b/lib/PublicInbox/View.pm
index aea0dd1c..4ac28346 100644
--- a/lib/PublicInbox/View.pm
+++ b/lib/PublicInbox/View.pm
@@ -17,6 +17,13 @@ sub as_html {
                 "</pre>\n";
 }
 
+sub as_feed_entry {
+        my ($class, $mime, $full_pfx) = @_;
+
+        "<pre>" . multipart_text_as_html($mime, $full_pfx) . "</pre>";
+}
+
+
 # only private functions below.
 
 sub multipart_text_as_html {