Changes between Version 5 and Version 6 of NagareTutorial2


Ignore:
Timestamp:
04/30/2011 01:12:04 AM (7 years ago)
Author:
apoirier
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • NagareTutorial2

    v5 v6  
    5858     app = Counter 
    5959 
    60 5. You can now view your new web application in your browser (go to http://localhost:8080/turorial). 
     605. You can now view your new web application in your browser (go to http://localhost:8080/tutorial). 
    6161 
    6262If you take a look at the page source, you could see that Nagare has wrapped the text node into a valid html structure. By default, the DOM tree is serialized as HTML4. This can be changed in the application configuration file, to use XHTML if the browser accepts it. 
     
    7676As you can see the ``h`` HTML renderer can be used as a factory for all the HTML tags. 
    7777 
    78 As we build a server-side DOM tree, we are protected against code injection. For example, if ``counter.value`` contains something like: 
     78As we build a server-side DOM tree, we are protected against code injection. For example, if ``counter.val`` contains something like: 
    7979 
    8080 .. code-block:: python