Koen Deforche b1b79ecadc Several changes: 8 gadi atpakaļ
..
asciidoc 7b836d9dc4 Several changes: 11 gadi atpakaļ
css 8eef8af388 Several changes: 10 gadi atpakaļ
model 776d193908 Several changes: 9 gadi atpakaļ
view b1b79ecadc Several changes: 8 gadi atpakaļ
BlogRSSFeed.C 265ea6e0c5 A batch of fixes: 11 gadi atpakaļ
BlogRSSFeed.h 265ea6e0c5 A batch of fixes: 11 gadi atpakaļ
CMakeLists.txt 76d9344ab0 merged authentication branch 13 gadi atpakaļ
README.md 8455fb6ae2 added README.md files for examples, several bug fixes 13 gadi atpakaļ
blog.C 8eef8af388 Several changes: 10 gadi atpakaļ
blog.xml 7d77b509d1 fix make install, --approot, small auth improvements 13 gadi atpakaļ
index.html 3356826fb0 Several bug fixes and improvements: 11 gadi atpakaļ

README.md

Blog example

This is an example that implements a simple yet feature-complete blog. This is the blog that is used on the Wt homepage.

Since this example is actually used in production code, the example is a bit more elaborate compared to other more simple examples.

How to run

See the README in the parent directory.

The example itself will be deployed at '/blog', and the RSS feed at '/blog/feed'. A SQLite3 database will be created in the working directory if it didn't yet exist.

What it illustrates

  • the use of Wt::Dbo to create a simple database-based model layer
  • how you can use these database objects inside View widgets
  • the use of WTemplate for recurisvely defining HTML-based views
  • the use Wt::Auth for authentication.
  • the use of a static WResource for an RSS feed