Edgewall Software

Changes between Version 23 and Version 24 of GenshiTutorial


Ignore:
Timestamp:
Aug 29, 2007, 10:29:58 PM (17 years ago)
Author:
cmlenz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GenshiTutorial

    v23 v24  
    612612{{{
    613613#!genshi
     614<!DOCTYPE html>
    614615<html xmlns="http://www.w3.org/1999/xhtml"
    615       xmlns:py="http://genshi.edgewall.org/" py:strip="">
     616      xmlns:py="http://genshi.edgewall.org/">
    616617
    617618  <py:match path="head" once="true">
     
    620621        geddit<py:if test="title">: ${title}</py:if>
    621622      </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>
    623625      ${select('*[local-name()!="title"]')}
    624626    </head>
     
    628630    <body py:attrs="select('@*')"><div id="wrap">
    629631      <div id="header">
    630         <h1>geddit</h1>
     632        <a href="/"><img src="${url('/media/logo.gif')}" width="201" height="79" alt="geddit?" /></a>
    631633      </div>
    632       ${select('*|text()')}
     634      <div id="content">
     635        ${select('*|text()')}
     636      </div>
    633637      <div id="footer">
    634638        <hr />
     
    717721
    718722You need to also change `submit.html` analogously.
     723
     724Talking 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
     726When you reload the front page in your browser, you should now see something similar to the following:
     727
     728[[Image(tutorial03.png)]]