Commits

Christian Scholz committed 4e980db

more text for the intro

  • Participants
  • Parent commits 797559a

Comments (0)

Files changed (1)

 
 The page model 
 **************
+
+
+A page is displayed in the web browser as an HTML page and thus will have some sort of template which gets rendered. Inside this template you can use ``slots`` which are the dynamic part of the page. Each slot basically corresponds to some method inside the page class which returns some bits of HTML. Slots themselves can of course also use templates to generate that HTML.
+
+Slots can be changed though. Imagine a document content type which displays it's contents inside the main slot in the middle of a page. In case you want to have this editable inline you have to replace this block with the actual edit form. In this case the same slot is used but filled by different slot providers (read: methods).
+
+This means that a Page not only usually has a template attached, it also has :term:`Slot Providers` which are able to provide data for ``Slots`` inside the page.
+
+
+Ajax support
+************
+
+Another part of making a web page dynamic is Ajax. :mod:`quantumcore.dynamicpage` also has support for this in terms of a :term:`jQuery` plugin which allows you to easily transform a page from e.g. a view of a document towards the edit form without a complete page reload.
+
+This is similar to :term:`KSS` which also had simple commands you can send from the server to the client in order to perform certain actions on the page. We support simple actions such as replacing, removing or appending data to an element. What we don't take over from KSS is the concept of being able to define triggers via a CSS like syntax. We think that :term:`jQuery` is easy enough to do this without sacrificing on flexibility.
+
+
+
+
+