Changes between Version 29 and Version 30 of S3/S3Navigation


Ignore:
Timestamp:
03/05/12 14:09:46 (10 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/S3Navigation

    v29 v30  
    262262==== Rendering Methods ====
    263263
    264 Instead of stepping through the sub-items and recursively rendering the descendant tree, the render can use:
     264Instead of stepping through the sub-items and recursively rendering the descendant tree, the layout method (=renderer) can use:
    265265
    266266{{{
     
    268268}}}
    269269
    270 to have this automated. This will render all sub-items in the order they are defined, and return the result as a list of web2py HTML helper instances.
    271 
    272 Note that the layout method should never just render sub-items - because they could be of different classes. Always run the sub-item's render() method in order to have it status-checked and rendered properly, or even better use render_components() of the current item.
     270This will status-check and render all sub-items in the correct order, and return the result as a list of web2py HTML helper instances.
     271
     272'''Note''' that the layout method should never just render sub-items - because they could be of different classes. Always run the sub-item's render() method in order to have it status-checked and rendered properly, or even better use render_components() of the current item.
    273273=== Invoking the Renderer ===
    274274