Changes between Version 2 and Version 3 of EggCookingTutorial/AdvancedEggCooking2


Ignore:
Timestamp:
Aug 27, 2005 7:46:28 PM (9 years ago)
Author:
cboos
Comment:

added syntax highlighting and tagging as tutorial

Legend:

Unmodified
Added
Removed
Modified
  • EggCookingTutorial/AdvancedEggCooking2

    v2 v3  
    2222Create ''helloworld.css'' in ''./helloworld-plugin/helloworld/htdocs/css/'': 
    2323{{{ 
     24#!text/css 
    2425div.helloworld h1 { 
    2526        color: red; 
     
    4142Modify ''setup.py'' to include our static data: 
    4243{{{ 
     44#!python 
    4345from setuptools import setup 
    4446 
     
    5759Add static data path to end of our plugin in file ''helloworld.py'': 
    5860{{{ 
     61#!python 
    5962    def get_htdocs_dir(self): 
    6063        """ 
     
    7073To make Trac to load our stylesheet you need to modify ''process_request'' method starting from line 23 to following: 
    7174{{{ 
     75#!python 
    7276    def process_request(self, req): 
    7377        add_stylesheet(req, 'css/helloworld.css') 
     
    8185Our new ''helloworld.cs'': 
    8286{{{ 
     87#!text/html 
    8388<?cs include "header.cs" ?> 
    8489<?cs include "macros.cs" ?> 
     
    101106 
    102107Now you have successfully completed nice simple plugin that uses it's own template and servers some static data. 
     108 
     109 
     110[[TagIt(tutorial)]]