Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 2 and Version 3 of ExtendingQuickstart


Ignore:
Timestamp:
11/17/05 07:15:00 (9 years ago)
Author:
anonymous
Comment:

spelling

Legend:

Unmodified
Added
Removed
Modified
  • ExtendingQuickstart

    v2 v3  
    1111So lets go ahead and create our own template! 
    1212 
    13 lets say that you have a default.css file that you always include in your webapp. 
     13Let's say that you have a default.css file that you always include in your webapp. 
    1414 
    15 lets start creating some files and dirs. 
     15Let's start creating some files and dirs. 
    1616 
    1717mytemplate/ 
     
    2020mytemplate/mytemplate/template/+package+/static/css/default.css 
    2121 
    22 first we will edit the setup.py 
     22First we will edit the setup.py 
    2323{{{ 
    2424from setuptools import setup, find_packages 
     
    3636}}} 
    3737 
    38 this setup basicly tells pasterscript that there is an template called mytemplate and it's class is MyTemplate in the mytemplate module 
     38This setup basically tells pastescript that there is an template called mytemplate and its class is MyTemplate in the mytemplate module 
    3939 
    40 now lets edit __init__.py 
     40Now let's edit __init__.py 
    4141 
    4242{{{ 
     
    5353}}} 
    5454 
    55 now all you have to do is add anything to the template dir. 
     55Now all you have to do is add anything to the template dir. 
    5656 
    57 now when you can run  
     57Now you can run  
    5858tg-admin quickstart -t mytemplate and there should be a default.css file in your static/css/ dir! 
    5959 
    60 see http://pythonpaste.org/script/developer.html#templates for more info 
     60See http://pythonpaste.org/script/developer.html#templates for more info 
    6161 
    6262/elvelind grandin