WatchPage

WatchPage

This is a helper class that allows you to have ruby scripts that do things with contents of a particular page. One example of its use, in how to enable a blog, is to create an automatic summary for each person listed on a page.

WatchPage.new(wiki,page_to_watch, call_once_at_startup = true ) { |page| # do something with the page }

It will call the block each time the content of the page is changed. If the call_once_at_startup option is true it will also call the block once when the wiki starts.

Edit this page or watch for changes using RSS.