I have an idea: surveys/polls. let each WikiPage have-a Model and a default ShowView and a default EditorView. WikiModel, the Model for a classic Wiki page, could simply be a big string. There would also be a TableModel which acting like a simple SQL table. Macros would need to exist for rendering the table in another page:
[[Embed(SomePage)]]
optionally with another view
[[Embed(SomePage,ThePollQuestions)]]
It seems just as valid to think of a table as being the resource at the end of a WikiPage as it does a simple free-form page... for that matter a picture or a 3D scene could also fit in!
For this to work the editing script must be able to let the user select from a variety of views when creating the page - and from then should delegate to that EditingView. Likewise the viewing code delegates to a DisplayView. The page model and the current view must be stored in the file on disk representing a page (or in the CVS tags!).
user clicks on UndefinedWikiName
- user gets select list of models
- page is created with (model = what the user chose, data = model.emptyContent() and view = model.defaultViewSet())
page.view.EditorView returns html form to user
See http://www.hanoi.dynu.com/~hanh/phpwiki-1.3.3/ for survey embedded in wiki page.