scikits_index / code /

This might not be such a good way to store page temlplates, but what are the alternatives?
	I don't want to store it as part of the DB alone as I want this info available both when running a local GAE and on the online GAE.
	I don't want to store it as separate files, because then you won't be able to modify them from the web. GAE doesn't support writing to "files" (probably) for security reasons.

So the way of currenty doing things:
	Manually check the online version every few months if there were any modifications made to the templated pages. If there was, paste the new version into this page.
	Yes, it's disgusting. If you can think of a better way please let me know.

- Janto


names = [

header_template = """

	<title>SciKits - {{ name }}</title>
	<script type="text/javascript" src="/static/jquery.js"></script>
	<script type="text/javascript" src="/static/jquery.corners.min.js"></script>

	<link href="/static/sphinxdoc.css" rel="stylesheet" type="text/css" />
	<link href="/static/images/download_32.png" rel="icon" type="image/png" />
	<link href="/rss.xml" rel="alternate" type="application/rss+xml" title="SciKits Releases" />



<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
<td><a href="/"><img src="/static/images/scipyshiny_small.png" width="64" border="0" /></a>
<td><a href="/"><span style="font-size: 36px;">SciKits</span></a></td>

<div class="related">
	<li><a href="/">Home</a> |&nbsp;</li>
	<li><a href="/about">About SciKits</a> |&nbsp;</li>
	<li><a href="/scikits">Download a SciKit</a> |&nbsp;</li>
	<li><a href="/contribute">Contribute</a></li>

<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">

	{{ admin_sidebar_html }}

	{{ editor_sidebar_html }}

	{{ newest_packages_html }}

	<h3>Quick search</h3>
	{{ search_box_html }}


<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">

<div class="section" id="{{ name }}">


footer_template = """

</div> <!-- section -->
</div> <!-- body -->
</div> <!-- bodywrapper -->
</div> <!-- documentwrapper -->
</div> <!-- document -->

<div class="clearer"></div>

<div class="footer">
See the <a href="">source</a>.
Created page in {{ load_time }} seconds. {{login_logout_html}}
<br />
Designed by <a href="">Janto Dreijer</a>.
Appearance based on <a href="">Sphinx</a> and <a href="">Phuzion icons</a>.

$(document).ready( function(){

{{ google_analytics }}

The following page request is vital to the working of the site.
If it's not called then (see Issue#2)
<script type="text/javascript">
jQuery.get("/worker?name={{ name }}");



# =======================================

main_template = """
Welcome to SciKits!  Here you'll find a searchable index of
add-on toolkits that complement <a href="">SciPy</a>, a library of scientific computing routines.

The SciKits cover a broad spectrum of application domains,
including financial computation, audio processing, geosciences,
computer vision, engineering, machine learning, medical computing
and bioinformatics.  <a href="/about">Learn more...</a>


<table class="contentstable" align="center" style="margin-left: 30px"><tr>
	<td width="50%%">

	<p class="biglink">
	<img src="/static/images/download_32.png" width="32" style="float: left; padding-bottom: 20px; padding-right: 10px;"/>
	<a class="biglink" href="/scikits">Download a SciKit</a><br/>
	<span class="linkdescr">Index of all SciKits.</span>

	<p class="biglink">
	<img src="/static/images/organize_32.png" width="32" style="float: left; padding-bottom: 20px; padding-right: 10px;"/>
	<a class="biglink" href="/contribute">Contribute</a><br/>
	<span class="linkdescr">Add your own SciKit or join an existing project.</span>



about_template = """

<h1>About SciKits</h1>

SciKits (short for SciPy Toolkits), are add-on packages for <a href="">SciPy</a>, hosted and developed separately from the main SciPy distribution.  All SciKits are available under the 'scikits' namespace and are licensed under <a href="">OSI-approved licenses</a>.
Packages are packages as toolkits (instead of in the main, monolithic SciPy distribution) when:
<li>The package is deemed too specialized to live in SciPy itself or
<li>The package has a GPL (or similar) license which is incompatible with SciPy's BSD license or
<li>The package is meant to be included in SciPy, but development is still in progress.</li>



contribute_template = """

<h3>Add your own package</h3>

<a href="">SciKits developer resources</a>

<!-- Register at PyPI or add to SVN repository -->

<h3>Join a project</h3>
Join a mailing list.

package_info_template = """
<a href="" style="text-decoration:none"><h1>{{ name }}</h1></a>
<i>{{ revision }}</i>
{{ shortdesc }}

{% if download_url %}
<img src="/static/images/download_32.png" width="16" border="0" />
Download:  <a href="{{ download_url }}">{{ download_url }}</a> <br />
{% endif %}
{% if homepage %}
Homepage: <a href="{{ homepage }}">{{ homepage }}</a> <br />
{% endif %}
{% if pypi_name %}
PyPI: <a href="{{ pypi_name }}">{{ pypi_name }}</a> <br />
{% endif %}
{% if repo_url %}
Source Repository: <a href="{{ repo_url }}">{{ repo_url }}</a> <br />
{% endif %}
{% if people %}
People: {{ people }} <br />
{% endif %}

{% if escaped_description %}
<div style="background-color:#f0f0f0; padding:5px" class="rounded">
{{ escaped_description }}
{% endif %}


{% if pypi_name %}
You can download the latest distribution from PyPI here: <a href="{{ name }}">{{ name }}</a>

<h4>Easy Install</h4>
Install the <a href="">Easy Install</a> tools. Afterwards you can install {{ name }} from the terminal by executing:
<pre>sudo easy_install {{ pypi_name }}</pre>

If you prefer to do a local installation, specify an installation prefix:
<pre>easy_install --prefix=${HOME} {{ pypi_name }}</pre>
and ensure that your <code>PYTHONPATH</code> is up to date, e.g.:
<pre>export PYTHONPATH=$PYTHONPATH:${HOME}/lib/python2.5/site-packages</pre>
{% endif %}

{% if repo_url %}
<h4>Source code</h4>
You can get the latest sources from the repository using
<pre>{{ repo_command }} <a href="{{ repo_url }}">{{ repo_url }}</a></pre>
{% endif %}

{% if info_source %}
<p><i>This package was discovered in {{ info_source }}.</i></p>
{% endif %}