From f678aafc72c6248eb4f2f8143c0a8a92336872e5 Mon Sep 17 00:00:00 2001 From: "R. Tyler Ballance" Date: Tue, 7 Apr 2009 20:50:26 -0700 Subject: Add the "Community" page, put the Python logo in the footer, and drop a code sample onto the homepage Signed-off-by: R. Tyler Ballance --- WikiRoot.html | 28 ++++++++++------ WikiRoot.tmpl | 22 +++++++------ community.tmpl | 25 +++++++++++++++ developers.html | 28 ++++++++++------ docs.html | 28 ++++++++++------ download.html | 28 ++++++++++------ index.html | 99 ++++++++++++++++++++++++++++++--------------------------- index.tmpl | 45 +++++++++++++++----------- recipes.html | 28 ++++++++++------ 9 files changed, 207 insertions(+), 124 deletions(-) create mode 100644 community.tmpl diff --git a/WikiRoot.html b/WikiRoot.html index 72b03f4..892bde0 100644 --- a/WikiRoot.html +++ b/WikiRoot.html @@ -1,16 +1,17 @@ + - - Community Cheetah - WikiRoot - - + + Community Cheetah - The Python-Powered Template Engine - WikiRoot + + - - - + + + Fork me on GitHub @@ -21,7 +22,6 @@ Home |  Issues |  Source |  - Mailing List |  @@ -47,6 +47,11 @@ Recipes +
  • + + Community + +
  • Developers @@ -78,8 +83,11 @@

    -
    @@ -47,6 +47,11 @@ Recipes
  • +
  • + + Community + +
  • Developers @@ -107,8 +112,11 @@ the issue into Community Cheetah's bu

    -
    @@ -47,6 +47,11 @@ Recipes
  • +
  • + + Community + +
  • Developers @@ -131,8 +136,11 @@ nature." Published Jan 8th, 2002.



    -
    @@ -47,6 +47,11 @@ Recipes
  • +
  • + + Community + +
  • Developers @@ -91,8 +96,11 @@ Install it wherever your system puts Cheetah/NameMapper.py. Strip the version nu

    -
    @@ -47,6 +47,11 @@ Recipes
  • +
  • + + Community + +
  • Developers @@ -59,49 +64,46 @@

    Community Cheetah

    -

    Community Cheetah is an active fork of the Cheetah Template engine. -The Cheetah Templating engine is a fully Python-powered templating engine +

    Community Cheetah is the rebirth of the Cheetah Template engine. +The Cheetah Templating engine is a Python-powered templating engine that can output or generate practically any text-based format (including Python itself!)

    -

    The primary motivations for the Community Cheetah fork is to maintain active development outside of -the currently-stale Cheetah CVS tree. Community Cheetah -isn't meant to diverge from the main goals of Cheetah: speed, ease of use and stability, but rather Community -Cheetah is meant to reinvirgorate the community surrounding Cheetah and provide monthly releases incorporating -patches and improvements to the engine.

    Cheetah already has a large and active user community, and there are a number of products built with Cheetah in the Fortune 500, as well startups in Silicon Valley (like Slide and Yelp)

    +

    Cheetah in a nutshell

    +

    Below is a simple example of some Cheetah code, as you can see it's pretty much just Python. You can import, inherit and +define methods just like in a regular Python module, since that's what your Cheetah templates are compiled to :)

    +
    #from Cheetah.Template import Template
    +#extends Template
    +
    +#set $people = [{'name' : 'Tom', 'mood' : 'Happy'}, {'name' : 'Dick', 'mood' : 'Sad'}, {'name' : 'Harry', 'mood' : 'Hairy'}]
    +<strong>How are you feeling?</strong>
    +<ul>
    +#for $person in $people
    +    <li>
    +        $person['name'] is $person['mood']
    +    </li>
    +#end for
    +</ul>
    +

    Why should I use Cheetah?

      -
    • -

      Cheetah is supported by every major Python web framework.

      -
    • -
    • -

      It is fully documented and is supported by an active user community.

      -
    • -
    • -

      It can output/generate any text-based format.

      -
    • -
    • -

      Cheetah compiles templates into optimized, yet readable, Python code.

      -
    • -
    • -

      It blends the power and flexibility of Python with a simple template language that non-programmers can understand.

      -
    • -
    • -

      It gives template authors full access to any Python data structure, module, function, object, or method in their templates. Meanwhile, it provides a way for administrators to selectively restrict access to Python when needed.

      -
    • -
    • -

      Cheetah makes code reuse easy by providing an object-oriented interface to templates that is accessible from Python code or other Cheetah templates. One template can subclass another and selectively reimplement sections of it. Cheetah templates can be subclasses of any Python class and vice-versa.

      -
    • -
    • -

      It provides a simple, yet powerful, caching mechanism that can dramatically improve the performance of a dynamic website.

      -
    • -
    • -

      It encourages clean separation of content, graphic design, and program code. This leads to highly modular, flexible, and reusable site architectures, shorter development time, and HTML and program code that is easier to understand and maintain. It is particularly well suited for team efforts.

      -
    • -
    • -

      Cheetah can be used to generate static html via its command-line tool.

      -
    • +
    • Cheetah is supported by every major Python web framework.
    • +
    • It is fully documented and is supported by an active user community.
    • +
    • It can output/generate any text-based format.
    • +
    • Cheetah compiles templates into optimized, yet readable, Python code.
    • +
    • It blends the power and flexibility of Python with a simple template language that non-programmers can understand.
    • +
    • It gives template authors full access to any Python data structure, module, function, object, or method in their templates. Meanwhile, it provides a way for administrators to selectively restrict access to Python when needed.
    • +
    • Cheetah makes code reuse easy by providing an object-oriented interface to templates that is accessible from Python code or other Cheetah templates. One template can subclass another and selectively reimplement sections of it. Cheetah templates can be subclasses of any Python class and vice-versa.
    • +
    • It provides a simple, yet powerful, caching mechanism that can dramatically improve the performance of a dynamic website.
    • +
    • It encourages clean separation of content, graphic design, and program code. This leads to highly modular, flexible, and reusable site architectures, shorter development time, and HTML and program code that is easier to understand and maintain. It is particularly well suited for team efforts.
    • +
    • Cheetah can be used to generate static html via its command-line tool.
    +

    Why Community Cheetah?

    +

    The primary motivations for the Community Cheetah fork is to maintain active development outside of +the currently-stale Cheetah CVS tree. Community Cheetah +isn't meant to diverge from the main goals of Cheetah: speed, ease of use and stability, but rather Community +Cheetah is meant to reinvirgorate the community surrounding Cheetah and provide monthly releases incorporating +patches and improvements to the engine.

    @@ -121,8 +123,11 @@ Fortune 500, as well startups in Silicon Valley (like
    -
    @@ -47,6 +47,11 @@ Recipes
  • +
  • + + Community + +
  • Developers @@ -82,8 +87,11 @@ from the old Wiki



    -