Changes between Version 23 and Version 24 of GenshiTutorial
- Timestamp:
- Aug 29, 2007, 10:29:58 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GenshiTutorial
v23 v24 612 612 {{{ 613 613 #!genshi 614 <!DOCTYPE html> 614 615 <html xmlns="http://www.w3.org/1999/xhtml" 615 xmlns:py="http://genshi.edgewall.org/" py:strip="">616 xmlns:py="http://genshi.edgewall.org/"> 616 617 617 618 <py:match path="head" once="true"> … … 620 621 geddit<py:if test="title">: ${title}</py:if> 621 622 </title> 622 <link rel="stylesheet" href="/media/layout.css" type="text/css" /> 623 <link rel="stylesheet" href="${url('/media/layout.css')}" type="text/css" /> 624 <script type="text/javascript" src="${url('/media/jquery.js')}"></script> 623 625 ${select('*[local-name()!="title"]')} 624 626 </head> … … 628 630 <body py:attrs="select('@*')"><div id="wrap"> 629 631 <div id="header"> 630 < h1>geddit</h1>632 <a href="/"><img src="${url('/media/logo.gif')}" width="201" height="79" alt="geddit?" /></a> 631 633 </div> 632 ${select('*|text()')} 634 <div id="content"> 635 ${select('*|text()')} 636 </div> 633 637 <div id="footer"> 634 638 <hr /> … … 717 721 718 722 You need to also change `submit.html` analogously. 723 724 Talking of “layout”, you can see that we've added references to some static resources in the layout template: there's an embedded image as well as a linked stylesheet and javascript file. [http://svn.edgewall.org/repos/genshi/trunk/examples/tutorial/geddit/static Download] those files and put them in your `geddit/static/` directory. 725 726 When you reload the front page in your browser, you should now see something similar to the following: 727 728 [[Image(tutorial03.png)]]