Changes between Version 12 and Version 13 of EggCookingTutorial/BasicEggCooking


Ignore:
Timestamp:
Oct 1, 2005, 12:48:34 AM (19 years ago)
Author:
muness
Comment:

Easier readability

Legend:

Unmodified
Added
Removed
Modified
  • EggCookingTutorial/BasicEggCooking

    v12 v13  
    11= Egg cooking =
    22
    3 Since Trac 0.9 it has been possible to write plugins for Trac to extend Trac functionality. Even better, you can deploy plugins as [http://peak.telecommunity.com/DevCenter/PythonEggs Python eggs] that really makes plugin development fun.
     3Since Trac 0.9 it has been possible to write plugins for Trac to extend Trac functionality.  Even better, you can deploy plugins as [http://peak.telecommunity.com/DevCenter/PythonEggs Python eggs] that really makes plugin development fun and easy.
    44
    5 This tutorial shows how to make an egg, successfully load an egg in Trac and in advanced topics how to serve templates and static content from an egg.
     5This tutorial shows how to make an egg, and load an egg in Trac. In the advanced parts you'll learn how to serve templates and static content from an egg.
    66
    7 You should be familiar with [trac:TracDev/ComponentArchitecture component architecture] and [trac:TracDev/PluginDevelopment plugin development]. This plugin is based on example in the plugin development article.  Here we extend it a bit further.
     7You should be familiar with [trac:TracDev/ComponentArchitecture component architecture] and [trac:TracDev/PluginDevelopment plugin development]. This plugin is based on the example in the plugin development article.  Here we extend it a bit further.
    88
    99== Required items ==
     
    1515== Directories ==
    1616
    17 To develop a plugin you need to create few directories to keep things together.
     17To develop a plugin you need to create a few directories to keep things together.
    1818
    1919So let's create following directories:
     
    2626== Main plugin ==
    2727
    28 The first step is to generate the main module for this plugin. We will construct a simple plugin that will display "Hello world!" on the screen when accessed through /helloworld URL. The plugin also provides a "Hello" button that is, by default, rendered on the far right in the main navigation bar.
     28The first step is to generate the main module for this plugin.  We will construct a simple plugin that will display "Hello world!" on the screen when accessed through the /helloworld URL. The plugin also provides a "Hello" button that is, by default, rendered on the far right in the main navigation bar.
    2929
    3030So create ''helloworld.py'' in ''./helloworld-plugin/helloworld/'':
     
    6363== Make it a module ==
    6464
    65 To make the plugin a module, you simply create that magic ''_''____''_init_''____''_.py'' in ''./helloworld-plugin/helloworld/'':
     65To make the plugin a module, you simply create an ''_''____''_init_''____''_.py'' in ''./helloworld-plugin/helloworld/'':
    6666{{{
    6767#!python
     
    9898== Aftermath ==
    9999
    100 Now you have successfully created your first egg. You can continue by reading [wiki:EggCookingTutorial/AdvancedEggCooking EggCookingTutorial/AdvancedEggCooking] to learn how to use Trac in your plugins.
     100Now you have successfully created your first egg. You can continue by reading [wiki:EggCookingTutorial/AdvancedEggCooking EggCookingTutorial/AdvancedEggCooking] to learn how to use templates in your plugins, and make its output look like other Trac pages.