summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorR. Tyler Ballance <tyler@slide.com>2009-04-07 20:50:26 -0700
committerR. Tyler Ballance <tyler@slide.com>2009-04-07 20:50:26 -0700
commitf678aafc72c6248eb4f2f8143c0a8a92336872e5 (patch)
treec3b04600c9f2eeda98339f1c3f86a05148ad5585
parent64793e91d592e4f3b0aaf59f7a8060bfe0a31ad8 (diff)
downloadpython-cheetah-f678aafc72c6248eb4f2f8143c0a8a92336872e5.tar.gz
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 <tyler@slide.com>
-rw-r--r--WikiRoot.html28
-rw-r--r--WikiRoot.tmpl22
-rw-r--r--community.tmpl25
-rw-r--r--developers.html28
-rw-r--r--docs.html28
-rw-r--r--download.html28
-rw-r--r--index.html99
-rw-r--r--index.tmpl45
-rw-r--r--recipes.html28
9 files changed, 207 insertions, 124 deletions
diff --git a/WikiRoot.html b/WikiRoot.html
index 72b03f4..892bde0 100644
--- a/WikiRoot.html
+++ b/WikiRoot.html
@@ -1,16 +1,17 @@
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
- <head>
- <title>Community Cheetah - WikiRoot</title>
- <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
- <meta name="keywords" content="#" />
+ <head>
+ <title>Community Cheetah - The Python-Powered Template Engine - WikiRoot</title>
+ <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
+ <meta name="keywords" content="cheetah, template engine, python, community cheetah, templating, markdown, markup, mod_python, webware"/>
<meta name="googlebot" content="index, follow" />
<meta name="language" content="en-us, english" />
- <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv " />
- </head>
- <body>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv" />
+ </head>
+ <body>
<a href="http://github.com/rtyler/cheetah">
<img style="position: absolute; top: 0; left: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_orange_ff7600.png" alt="Fork me on GitHub" />
@@ -21,7 +22,6 @@
<a href="index.html">Home</a>&nbsp;|&nbsp;
<a href="http://bugs.communitycheetah.org">Issues</a>&nbsp;|&nbsp;
<a href="http://github.com/rtyler/cheetah/tree/master">Source</a>&nbsp;|&nbsp;
- <a href="http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss">Mailing List</a>&nbsp;|&nbsp;
</div>
</div>
@@ -48,6 +48,11 @@
</a>
</li>
<li>
+ <a href="community.html" title="Community">
+ <span>Community</span>
+ </a>
+ </li>
+ <li>
<a href="developers.html" title="Developers">
<span>Developers</span>
</a>
@@ -78,8 +83,11 @@
<br clear="all"/>
<br/>
- <div id="footer">&copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
-
+ <a href="http://www.python.org" target="_blank"><img src="images/python-logo.gif" border="0" alt="Python-powered" title="Python-powered" align="right"/></a>
+ <br clear="all"/>
+ <br/>
+ <div id="footer">
+ &copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
</div>
diff --git a/WikiRoot.tmpl b/WikiRoot.tmpl
index 11df654..f14035c 100644
--- a/WikiRoot.tmpl
+++ b/WikiRoot.tmpl
@@ -8,23 +8,24 @@
('Download', 'download.html', True),
('Documentation', 'docs.html', True),
('Recipes', 'recipes.html', True),
- ('Issues', 'http://bugs.communitycheetah.org', False),
+ ('Community', 'community.html', True),
('Developers', 'developers.html', True),
+ ('Issues', 'http://bugs.communitycheetah.org', False),
('Source', 'http://github.com/rtyler/cheetah/tree/master', False),
- ('Mailing List', 'http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss', False),
]
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
- <head>
- <title>Community Cheetah - $pagename()</title>
- <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
- <meta name="keywords" content="#" />
+ <head>
+ <title>Community Cheetah - The Python-Powered Template Engine - $pagename()</title>
+ <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
+ <meta name="keywords" content="cheetah, template engine, python, community cheetah, templating, markdown, markup, mod_python, webware"/>
<meta name="googlebot" content="index, follow" />
<meta name="language" content="en-us, english" />
- <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv " />
- </head>
- <body>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv" />
+ </head>
+ <body>
$header()
@@ -110,6 +111,9 @@
#end def
#def footer()
+ <a href="http://www.python.org" target="_blank"><img src="images/python-logo.gif" border="0" alt="Python-powered" title="Python-powered" align="right"/></a>
+ <br clear="all"/>
+ <br/>
<div id="footer">
&copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
#*
diff --git a/community.tmpl b/community.tmpl
new file mode 100644
index 0000000..984ff39
--- /dev/null
+++ b/community.tmpl
@@ -0,0 +1,25 @@
+#import WikiRoot
+#from Cheetah.Filters import Markdown
+#extends WikiRoot.WikiRoot
+
+#def pagename()
+ #return 'Community'
+#end def
+
+#def content()
+#transform Markdown
+Cheetah Community
+=====================
+
+Mailing List
+------------
+The majority of Cheetah discussions occur on the [Cheetah mailing list](http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss).
+Once you've subscribed to the Cheetah mailing list, you can just send an email to **cheetahtemplate-discuss@lists.sourceforge.net**
+
+
+IRC
+---
+You can also find Cheetah on [Freenode](http://freenode.net) in the **\#Cheetah** IRC channel. The channel is currently low traffic, so if there
+is nobody available to answer your questions on IRC, you may be better served pinging the mailing list.
+
+#end def
diff --git a/developers.html b/developers.html
index c6a5624..2df9ec8 100644
--- a/developers.html
+++ b/developers.html
@@ -1,16 +1,17 @@
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
- <head>
- <title>Community Cheetah - Developers</title>
- <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
- <meta name="keywords" content="#" />
+ <head>
+ <title>Community Cheetah - The Python-Powered Template Engine - Developers</title>
+ <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
+ <meta name="keywords" content="cheetah, template engine, python, community cheetah, templating, markdown, markup, mod_python, webware"/>
<meta name="googlebot" content="index, follow" />
<meta name="language" content="en-us, english" />
- <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv " />
- </head>
- <body>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv" />
+ </head>
+ <body>
<a href="http://github.com/rtyler/cheetah">
<img style="position: absolute; top: 0; left: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_orange_ff7600.png" alt="Fork me on GitHub" />
@@ -21,7 +22,6 @@
<a href="index.html">Home</a>&nbsp;|&nbsp;
<a href="http://bugs.communitycheetah.org">Issues</a>&nbsp;|&nbsp;
<a href="http://github.com/rtyler/cheetah/tree/master">Source</a>&nbsp;|&nbsp;
- <a href="http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss">Mailing List</a>&nbsp;|&nbsp;
</div>
</div>
@@ -48,6 +48,11 @@
</a>
</li>
<li>
+ <a href="community.html" title="Community">
+ <span>Community</span>
+ </a>
+ </li>
+ <li>
<a href="developers.html" title="Developers">
<span>Developers</span>
</a>
@@ -107,8 +112,11 @@ the issue into Community Cheetah's <a href="http://bugs.communitycheetah.org">bu
<br clear="all"/>
<br/>
- <div id="footer">&copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
-
+ <a href="http://www.python.org" target="_blank"><img src="images/python-logo.gif" border="0" alt="Python-powered" title="Python-powered" align="right"/></a>
+ <br clear="all"/>
+ <br/>
+ <div id="footer">
+ &copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
</div>
diff --git a/docs.html b/docs.html
index da7b6f0..7b1af41 100644
--- a/docs.html
+++ b/docs.html
@@ -1,16 +1,17 @@
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
- <head>
- <title>Community Cheetah - Documentation</title>
- <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
- <meta name="keywords" content="#" />
+ <head>
+ <title>Community Cheetah - The Python-Powered Template Engine - Documentation</title>
+ <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
+ <meta name="keywords" content="cheetah, template engine, python, community cheetah, templating, markdown, markup, mod_python, webware"/>
<meta name="googlebot" content="index, follow" />
<meta name="language" content="en-us, english" />
- <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv " />
- </head>
- <body>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv" />
+ </head>
+ <body>
<a href="http://github.com/rtyler/cheetah">
<img style="position: absolute; top: 0; left: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_orange_ff7600.png" alt="Fork me on GitHub" />
@@ -21,7 +22,6 @@
<a href="index.html">Home</a>&nbsp;|&nbsp;
<a href="http://bugs.communitycheetah.org">Issues</a>&nbsp;|&nbsp;
<a href="http://github.com/rtyler/cheetah/tree/master">Source</a>&nbsp;|&nbsp;
- <a href="http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss">Mailing List</a>&nbsp;|&nbsp;
</div>
</div>
@@ -48,6 +48,11 @@
</a>
</li>
<li>
+ <a href="community.html" title="Community">
+ <span>Community</span>
+ </a>
+ </li>
+ <li>
<a href="developers.html" title="Developers">
<span>Developers</span>
</a>
@@ -131,8 +136,11 @@ nature." Published Jan 8th, 2002.</p>
<br clear="all"/>
<br/>
- <div id="footer">&copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
-
+ <a href="http://www.python.org" target="_blank"><img src="images/python-logo.gif" border="0" alt="Python-powered" title="Python-powered" align="right"/></a>
+ <br clear="all"/>
+ <br/>
+ <div id="footer">
+ &copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
</div>
diff --git a/download.html b/download.html
index 6c6118c..36ef428 100644
--- a/download.html
+++ b/download.html
@@ -1,16 +1,17 @@
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
- <head>
- <title>Community Cheetah - Downloads</title>
- <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
- <meta name="keywords" content="#" />
+ <head>
+ <title>Community Cheetah - The Python-Powered Template Engine - Downloads</title>
+ <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
+ <meta name="keywords" content="cheetah, template engine, python, community cheetah, templating, markdown, markup, mod_python, webware"/>
<meta name="googlebot" content="index, follow" />
<meta name="language" content="en-us, english" />
- <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv " />
- </head>
- <body>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv" />
+ </head>
+ <body>
<a href="http://github.com/rtyler/cheetah">
<img style="position: absolute; top: 0; left: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_orange_ff7600.png" alt="Fork me on GitHub" />
@@ -21,7 +22,6 @@
<a href="index.html">Home</a>&nbsp;|&nbsp;
<a href="http://bugs.communitycheetah.org">Issues</a>&nbsp;|&nbsp;
<a href="http://github.com/rtyler/cheetah/tree/master">Source</a>&nbsp;|&nbsp;
- <a href="http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss">Mailing List</a>&nbsp;|&nbsp;
</div>
</div>
@@ -48,6 +48,11 @@
</a>
</li>
<li>
+ <a href="community.html" title="Community">
+ <span>Community</span>
+ </a>
+ </li>
+ <li>
<a href="developers.html" title="Developers">
<span>Developers</span>
</a>
@@ -91,8 +96,11 @@ Install it wherever your system puts Cheetah/NameMapper.py. Strip the version nu
<br clear="all"/>
<br/>
- <div id="footer">&copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
-
+ <a href="http://www.python.org" target="_blank"><img src="images/python-logo.gif" border="0" alt="Python-powered" title="Python-powered" align="right"/></a>
+ <br clear="all"/>
+ <br/>
+ <div id="footer">
+ &copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
</div>
diff --git a/index.html b/index.html
index cc177e9..e21e86d 100644
--- a/index.html
+++ b/index.html
@@ -1,16 +1,17 @@
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
- <head>
- <title>Community Cheetah - Home</title>
- <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
- <meta name="keywords" content="#" />
+ <head>
+ <title>Community Cheetah - The Python-Powered Template Engine - Home</title>
+ <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
+ <meta name="keywords" content="cheetah, template engine, python, community cheetah, templating, markdown, markup, mod_python, webware"/>
<meta name="googlebot" content="index, follow" />
<meta name="language" content="en-us, english" />
- <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv " />
- </head>
- <body>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv" />
+ </head>
+ <body>
<a href="http://github.com/rtyler/cheetah">
<img style="position: absolute; top: 0; left: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_orange_ff7600.png" alt="Fork me on GitHub" />
@@ -21,7 +22,6 @@
<a href="index.html">Home</a>&nbsp;|&nbsp;
<a href="http://bugs.communitycheetah.org">Issues</a>&nbsp;|&nbsp;
<a href="http://github.com/rtyler/cheetah/tree/master">Source</a>&nbsp;|&nbsp;
- <a href="http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss">Mailing List</a>&nbsp;|&nbsp;
</div>
</div>
@@ -48,6 +48,11 @@
</a>
</li>
<li>
+ <a href="community.html" title="Community">
+ <span>Community</span>
+ </a>
+ </li>
+ <li>
<a href="developers.html" title="Developers">
<span>Developers</span>
</a>
@@ -59,49 +64,46 @@
<div id="centercontent">
<h1>Community Cheetah</h1>
-<p>Community Cheetah is an active fork of the <a href="http://www.cheetahtemplate.org/">Cheetah Template</a> engine.
-The Cheetah Templating engine is a fully <a href="http://www.python.org">Python</a>-powered templating engine
+<p>Community Cheetah is the rebirth of the <a href="http://www.cheetahtemplate.org/">Cheetah Template</a> engine.
+The Cheetah Templating engine is a <a href="http://www.python.org">Python</a>-powered templating engine
that can output or generate practically <strong>any</strong> text-based format (including Python itself!)</p>
-<p>The primary motivations for the Community Cheetah fork is to maintain <em>active</em> development outside of
-the currently-stale <a href="http://sourceforge.net/scm/?type=cvs&amp;group_id=28961">Cheetah CVS tree</a>. 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 <strong>monthly</strong> releases incorporating
-patches and improvements to the engine.</p>
<p>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 <a href="http://www.slide.com">Slide</a> and <a href="http://www.yelp.com">Yelp</a>)</p>
+<h2>Cheetah in a nutshell</h2>
+<p>Below is a simple example of some Cheetah code, as you can see it's <em>pretty much</em> 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 :)</p>
+<pre><code>#from Cheetah.Template import Template
+#extends Template
+
+#set $people = [{'name' : 'Tom', 'mood' : 'Happy'}, {'name' : 'Dick', 'mood' : 'Sad'}, {'name' : 'Harry', 'mood' : 'Hairy'}]
+&lt;strong&gt;How are you feeling?&lt;/strong&gt;
+&lt;ul&gt;
+#for $person in $people
+ &lt;li&gt;
+ $person['name'] is $person['mood']
+ &lt;/li&gt;
+#end for
+&lt;/ul&gt;
+</code></pre>
<h2>Why should I use Cheetah?</h2>
<ul>
-<li>
-<p>Cheetah is supported by every major Python web framework.</p>
-</li>
-<li>
-<p>It is fully documented and is supported by an active user community.</p>
-</li>
-<li>
-<p>It can output/generate any text-based format.</p>
-</li>
-<li>
-<p>Cheetah compiles templates into optimized, yet readable, Python code.</p>
-</li>
-<li>
-<p>It blends the power and flexibility of Python with a simple template language that non-programmers can understand. </p>
-</li>
-<li>
-<p>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. </p>
-</li>
-<li>
-<p>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. </p>
-</li>
-<li>
-<p>It provides a simple, yet powerful, caching mechanism that can dramatically improve the performance of a dynamic website. </p>
-</li>
-<li>
-<p>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. </p>
-</li>
-<li>
-<p>Cheetah can be used to generate static html via its command-line tool.</p>
-</li>
+<li>Cheetah is supported by every major Python web framework.</li>
+<li>It is fully documented and is supported by an active user community.</li>
+<li>It can output/generate any text-based format.</li>
+<li>Cheetah compiles templates into optimized, yet readable, Python code.</li>
+<li>It blends the power and flexibility of Python with a simple template language that non-programmers can understand. </li>
+<li>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. </li>
+<li>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. </li>
+<li>It provides a simple, yet powerful, caching mechanism that can dramatically improve the performance of a dynamic website. </li>
+<li>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. </li>
+<li>Cheetah can be used to generate static html via its command-line tool.</li>
</ul>
+<h2>Why Community Cheetah?</h2>
+<p>The primary motivations for the Community Cheetah fork is to maintain <em>active</em> development outside of
+the currently-stale <a href="http://sourceforge.net/scm/?type=cvs&amp;group_id=28961">Cheetah CVS tree</a>. 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 <strong>monthly</strong> releases incorporating
+patches and improvements to the engine.</p>
</div>
<div id="rightcontent">
@@ -121,8 +123,11 @@ Fortune 500, as well startups in Silicon Valley (like <a href="http://www.slide.
<br clear="all"/>
<br/>
- <div id="footer">&copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
-
+ <a href="http://www.python.org" target="_blank"><img src="images/python-logo.gif" border="0" alt="Python-powered" title="Python-powered" align="right"/></a>
+ <br clear="all"/>
+ <br/>
+ <div id="footer">
+ &copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
</div>
diff --git a/index.tmpl b/index.tmpl
index 87cd6f1..4bed4d2 100644
--- a/index.tmpl
+++ b/index.tmpl
@@ -10,41 +10,50 @@
#transform Markdown
Community Cheetah
=================
-
-Community Cheetah is an active fork of the [Cheetah Template](http://www.cheetahtemplate.org/) engine.
-The Cheetah Templating engine is a fully [Python](http://www.python.org)-powered templating engine
+Community Cheetah is the rebirth of the [Cheetah Template](http://www.cheetahtemplate.org/) engine.
+The Cheetah Templating engine is a [Python](http://www.python.org)-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](http://sourceforge.net/scm/?type=cvs&group_id=28961). 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](http://www.slide.com) and [Yelp](http://www.yelp.com))
+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.
+Why Community Cheetah?
+----------------------
+The primary motivations for the Community Cheetah fork is to maintain *active* development outside of
+the currently-stale [Cheetah CVS tree](http://sourceforge.net/scm/?type=cvs&group_id=28961). 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.
#end def
diff --git a/recipes.html b/recipes.html
index 3e309d2..9e4a08a 100644
--- a/recipes.html
+++ b/recipes.html
@@ -1,16 +1,17 @@
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
- <head>
- <title>Community Cheetah - Recipes</title>
- <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
- <meta name="keywords" content="#" />
+ <head>
+ <title>Community Cheetah - The Python-Powered Template Engine - Recipes</title>
+ <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
+ <meta name="keywords" content="cheetah, template engine, python, community cheetah, templating, markdown, markup, mod_python, webware"/>
<meta name="googlebot" content="index, follow" />
<meta name="language" content="en-us, english" />
- <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv " />
- </head>
- <body>
+ <link rel="stylesheet" type="text/css" href="stylesheet.css" media="screen, projection, tv" />
+ </head>
+ <body>
<a href="http://github.com/rtyler/cheetah">
<img style="position: absolute; top: 0; left: 0; border: 0;" src="http://s3.amazonaws.com/github/ribbons/forkme_left_orange_ff7600.png" alt="Fork me on GitHub" />
@@ -21,7 +22,6 @@
<a href="index.html">Home</a>&nbsp;|&nbsp;
<a href="http://bugs.communitycheetah.org">Issues</a>&nbsp;|&nbsp;
<a href="http://github.com/rtyler/cheetah/tree/master">Source</a>&nbsp;|&nbsp;
- <a href="http://lists.sourceforge.net/lists/listinfo/cheetahtemplate-discuss">Mailing List</a>&nbsp;|&nbsp;
</div>
</div>
@@ -48,6 +48,11 @@
</a>
</li>
<li>
+ <a href="community.html" title="Community">
+ <span>Community</span>
+ </a>
+ </li>
+ <li>
<a href="developers.html" title="Developers">
<span>Developers</span>
</a>
@@ -82,8 +87,11 @@ from the old Wiki</p>
<br clear="all"/>
<br/>
- <div id="footer">&copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
-
+ <a href="http://www.python.org" target="_blank"><img src="images/python-logo.gif" border="0" alt="Python-powered" title="Python-powered" align="right"/></a>
+ <br clear="all"/>
+ <br/>
+ <div id="footer">
+ &copy; 2006 Design by <a href="http://www.studio7designs.com">Studio7designs.com</a>
</div>