Commits

Armin Ronacher committed de51234

Initial version of the new website

Comments (0)

Files changed (8)

+_build
+build:
+	run-rstblog build
+
+serve:
+	run-rstblog serve
+
+upload:
+	scp -r _build/* pocoo.org:/var/www/werkzeug.pocoo.org

_templates/layout.html

+<!doctype html>
+{% block htmlhead %}
+<title>{% block title %}Welcome{% endblock %} | Jinja2 (The Python Template Engine)</title>
+<meta charset=utf-8>
+<link rel=stylesheet type=text/css href="/static/style.css">
+{% endblock %}
+<div class=box>
+  <div class=header>
+    <h1><span>Jinja2</span></h1>
+    <p>The Python Template Engine
+  </div>
+  <p class=nav>
+    <a href="/">overview</a> |
+    <a href="/docs/">documentation</a> |
+    <a href="/community/">community</a>
+  {% block body %}{% endblock %}
+  <p class=footer>
+    &copy; Copyright 2011 by <a href=http://lucumr.pocoo.org/>Armin Ronacher</a>
+</div>
+public: yes
+
+Community
+=========
+
+The most important thing for a successful Open Source project is a vibrant
+community.  This part of the webpage tries to connect Werkzeug users all
+over the world, to exchange their experiences and to help each other.
+
+IRC Channel
+-----------
+
+Jinja is one of the `Pocoo`_ libraries and uses the ``#pocoo`` channel on
+irc.freenode.net for both development specific questions and user support.
+
+You need an IRC Client to join it. The following clients are widely known and used:
+
+-   `Pidgin <http://pidgin.im/>`_, Windows, Linux, OS X
+-   `X-Chat <http://xchat.org/>`_, Linux
+-   `mirc <http://mirc.com/>`_, Windows
+-   `colloquy <http://colloquy.info/>`_, OS X
+
+We also have a bot in the channel that logs the conversations. You can
+have a look at older discussions `in the logs <http://dev.pocoo.org/irclogs/>`_.
+
+Mailing List
+------------
+
+If you prefer discussions or support via e-mail you can use the `pocoo-libs
+mailinglist <http://groups.google.com/group/pocoo-libs>`_. 
+
+.. _Pocoo: http://www.pocoo.org/
+---
+active_modules: []
+author: Armin Ronacher
+canonical_url: http://jinja.pocoo.org/
+public: yes
+
+Welcome
+=======
+
+    Jinja2 is a full featured template engine for Python.  It has full
+    unicode support, an optional integrated sandboxed execution
+    environment, widely used and BSD licensed.
+
+Jinja is Beautiful
+------------------
+
+::
+
+    {% extends "layout.html" %}
+    {% block body %}
+      <ul>
+      {% for user in users %}
+        <li><a href="{{ user.url }}">{{ user.username }}</a></li>
+      {% endfor %}
+      </ul>
+    {% endblock %}
+
+And Powerful
+------------
+
+Jinja2 is one of the most used template engines for Python.  It is
+inspired by Django's templating system but extends it with an expressive
+language that gives template authors a more powerful set of tools.  On top
+of that it adds sandboxed execution and optional automatic escaping for
+applications where security is important.
+
+It is internally based on Unicode and runs on a wide range of Python
+versions from 2.4 to current versions including Python 3.
+
+Wide Range of Features
+----------------------
+
+-   Sandboxed execution mode.  Every aspect of the template execution is
+    monitored and explicitly whitelisted or blacklisted, whatever is
+    preferred.  This makes it possible to execute untrusted templates.
+-   powerful automatic HTML escaping system for cross site scripting
+    prevention.
+-   Template inheritance makes it possible to use the same or a similar
+    layout for all templates.
+-   High performance with just in time compilation to Python bytecode.
+    Jinja2 will translate your template sources on first load into Python
+    bytecode for best runtime performance.
+-   Optional ahead-of-time compilation
+-   Easy to debug with a debug system that integrates template compile and
+    runtime errors into the standard Python traceback system.
+-   Configurable syntax.  For instance you can reconfigure Jinja2 to
+    better fit output formats such as LaTeX or JavaScript.
+-   Template designer helpers.  Jinja2 ships with a wide range of useful
+    little helpers that help solving common tasks in templates such as
+    breaking up sequences of items into multiple columns and more.
+
+Who uses it?
+------------
+
+-   `Mozilla <http://www.mozilla.org/>`_
+-   `SourceForge <http://www.sourceforge.net/>`_
+-   `Instagram <http://instagr.am/>`_
+-   … and many more
+
+
+Contribute
+----------
+
+Found a bug? Have a good idea for improving Jinja2? Head over to
+`Jinja's new github <http://github.com/mitsuhiko/jinja2>`_ page and
+create a new ticket or fork.  If you just want to chat with fellow
+developers, visit the `IRC channel </community/#irc-channel>`_ or join the
+`mailinglist </community/#mailinglist>`_. 
+
+.. raw:: html
+
+    <a href="http://github.com/mitsuhiko/jinja2"><img style="position: fixed; top: 0; right: 0; border: 0;"
+       src="http://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
+
+
+.. _Flask: http://flask.pocoo.org/
+.. _tipfy: http://www.tipfy.org/
+body         { font-family: 'Georgia', serif; font-size: 17px; color: #000; }
+a            { color: #aa0000; }
+a:hover      { color: #dd0000; }
+.box         { width: 540px; margin: 40px auto; }
+h1, h2, h3   { font-family: 'Georgia', serif; font-weight: normal; }
+.header      { height: 165px; }
+.header h1   { margin: 0 0 30px 0; background: url(/static/jinja.png) no-repeat center;
+               font-size: 50px; padding-top: 50px; height: 120px; }
+.header h1 span, .header p { display: none; }
+h1           { font-size: 34px; margin: 25px 0 5px 0; }
+h2           { font-size: 24px; margin: 25px 0 5px 0; }
+h3           { font-size: 19px; margin: 25px 0 5px 0; }
+textarea, code,
+pre          { font-family: 'Consolas', 'Menlo', 'Deja Vu Sans Mono', 'Bitstream Vera Sans Mono',
+               monospace!important; font-size: 15px; background: #eee; }
+pre          { padding: 7px 30px; margin: 15px -30px; line-height: 1.3; }
+.ig          { color: #888; }
+p            { line-height: 1.4; }
+ul           { margin: 15px 0 15px 0; padding: 0; list-style: none; line-height: 1.4; }
+ul li:before { content: "\00BB \0020"; color: #888; position: absolute; margin-left: -19px; }
+ol           { line-height: 1.4; margin: 15px 0 15px 30px; padding: 0; }
+blockquote   { margin: 15px 0; font-style: italic; color: #444; }
+.footer      { font-size: 13px; color: #888; text-align: right; margin-top: 25px; }
+.more        { text-align: right; margin-top: 0; font-size: 0.9em; font-style: italic; }
+.nav         { text-align: center; margin: 0; }
+table        { border: 1px solid black; border-collapse: collapse;
+               margin: 15px 0; }
+td, th       { border: 1px solid black; padding: 4px 10px;
+               text-align: left; }
+th           { background: #eee; font-weight: normal; }
+
+td input     { border: none; padding: 0; }
+
+/* latest version button */
+.latestver          { margin: 20px 0 0 0; float: right; font-style: italic; }
+.latestver strong   { font-weight: normal; }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.