Module: Hobix

Defined in:
lib/hobix.rb,
lib/hobix/api.rb,
lib/hobix/base.rb,
lib/hobix/entry.rb,
lib/hobix/entry.rb,
lib/hobix/bixwik.rb,
lib/hobix/bixwik.rb,
lib/hobix/config.rb,
lib/hobix/weblog.rb,
lib/hobix/article.rb,
lib/hobix/out/erb.rb,
lib/hobix/out/rdf.rb,
lib/hobix/out/rss.rb,
lib/hobix/comments.rb,
lib/hobix/linklist.rb,
lib/hobix/out/atom.rb,
lib/hobix/datamarsh.rb,
lib/hobix/out/quick.rb,
lib/hobix/trackbacks.rb,
lib/hobix/webapp/cli.rb,
lib/hobix/commandline.rb,
lib/hobix/out/okaynews.rb,
lib/hobix/publish/ping.rb,
lib/hobix/util/objedit.rb,
lib/hobix/util/patcher.rb,
lib/hobix/plugin/flickr.rb,
lib/hobix/search/simple.rb,
lib/hobix/search/vector.rb,
lib/hobix/webapp/urigen.rb,
lib/hobix/plugin/akismet.rb,
lib/hobix/webapp/message.rb,
lib/hobix/facets/comments.rb,
lib/hobix/plugin/calendar.rb,
lib/hobix/storage/filesys.rb,
lib/hobix/webapp/htmlform.rb,
lib/hobix/facets/publisher.rb,
lib/hobix/plugin/bloglines.rb,
lib/hobix/facets/trackbacks.rb,
lib/hobix/publish/replicate.rb,
lib/hobix/search/dictionary.rb,
lib/hobix/search/porter_stemmer.rb,
lib/hobix/plugin/recent_comments.rb,
lib/hobix/webapp/webrick-servlet.rb

Overview

recent_comments.rb – Hobix recent comments plugin

Displays a list of recent comments posted on your blog.

USAGE:

1) In hobix.yaml (e.g. by running ‘hobix edit <blogname>’), simply

add 'hobix/plugin/recent_comments' to the 'required' list, as
follows:

required:

- hobix/plugin/recent_comments

 And that's it!

 You can also specify any of the following arguments:

required:

- hobix/plugin/recent_comments:
    num: <number of comments (default 5)>

NOTES:

1) If you redefine ‘sidebar_list’ in hobix.yaml, you’ll need to

explicitly add a 'sidebar_recent_comments' item.

2) Currently pretty slow, as it basically take a brute force

approach.

Defined Under Namespace

Modules: BaseProperties, BixWik, CommandLine, EntryEnum, Enumerable, Facets, Out, Publish, Search, Stemmable, Storage, UriStr, Util Classes: API, AkismetKey, Article, BaseContent, BaseEntry, BaseFacet, BaseOutput, BasePlugin, BasePublish, BaseStorage, BixWikPlugin, BloglinesPlugin, Comment, Config, DataMarsh, Entry, FlickrPlugin, IndexEntry, LinkList, Page, RecentCommentsPlugin, SidebarCalendarPlugin, Trackback, WebApp, Weblog

Constant Summary collapse

VERSION =

Version used to compare installations

'0.5'
CVS_ID =

CVS information

"$Id$"
CVS_REV =
"$Revision$"[11..-3]
SHARE_PATH =
"#{ ::Config::CONFIG['datadir'] }/hobix/"

Class Method Summary collapse

Class Method Details

.const_find(tclass) ⇒ Object

Get a top-level constant from a string



224
225
226
227
228
# File 'lib/hobix.rb', line 224

def self.const_find( tclass )
    obj_class = Object
    tclass.split( "::" ).each { |c| obj_class = obj_class.const_get( c ) }
    obj_class
end