doc/book/devweb/views/primary.rst
changeset 10495 5bd914ebf3ae
parent 10491 c67bcee93248
equal deleted inserted replaced
10494:b6f00889355c 10495:5bd914ebf3ae
    20 Layout
    20 Layout
    21 ``````
    21 ``````
    22 
    22 
    23 The primary view has the following layout.
    23 The primary view has the following layout.
    24 
    24 
    25 .. image:: ../../images/primaryview_template.png
    25 .. image:: ../../../images/primaryview_template.png
    26 
    26 
    27 .. _primary_view_configuration:
    27 .. _primary_view_configuration:
    28 
    28 
    29 Primary view configuration
    29 Primary view configuration
    30 ``````````````````````````
    30 ``````````````````````````
   196 with its own specific criterion.
   196 with its own specific criterion.
   197 
   197 
   198 The view method ``self.w()`` is used to output data. Here `lines
   198 The view method ``self.w()`` is used to output data. Here `lines
   199 08-09` output HTML for the publication date of the entry.
   199 08-09` output HTML for the publication date of the entry.
   200 
   200 
   201 .. image:: ../../images/lax-book_09-new-view-blogentry_en.png
   201 .. image:: ../../../images/lax-book_09-new-view-blogentry_en.png
   202    :alt: blog entries now look much nicer
   202    :alt: blog entries now look much nicer
   203 
   203 
   204 Let us now improve the primary view of a blog
   204 Let us now improve the primary view of a blog
   205 
   205 
   206 .. sourcecode:: python
   206 .. sourcecode:: python
   269   unicode strings.
   269   unicode strings.
   270 
   270 
   271 Assuming we added entries to the blog titled `MyLife`, displaying it
   271 Assuming we added entries to the blog titled `MyLife`, displaying it
   272 now allows to read its description and all its entries.
   272 now allows to read its description and all its entries.
   273 
   273 
   274 .. image:: ../../images/lax-book_10-blog-with-two-entries_en.png
   274 .. image:: ../../../images/lax-book_10-blog-with-two-entries_en.png
   275    :alt: a blog and all its entries
   275    :alt: a blog and all its entries
   276 
   276