Did you know ... Search Documentation:
news.pl -- News on the SWI-Prolog Web site
PublicShow source
- Wouter Beek
- 2013/12
To be done
- Calculate relevance based on freshness lifetime and importance.
- User-specific influencing of relevance. Based on login/based on cookies.
Source news_process(+Request)[private]
HTTP handler for /news/. Distinguishes three cases:
  1. GET to /news/<Kind>/<Id> to render a single news item.
  2. GET to /news/ to render the fresh news.
  3. POST provides a REST API for managing news.
Source news_archive(+Request) is det[private]
Show all available news.
Source random_news// is semidet
Emit a random news item for the Did You Know place of the page. Fails if there is no news.
Source random_new_item(-Id:atom, -Title:atom) is det[private]