summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2011-01-24 01:52:35 +0100
committerArmin Ronacher <armin.ronacher@active-4.com>2011-01-24 01:52:35 +0100
commitde512348ac20d4334411dae691dd54bc747b8519 (patch)
tree0a6cf64fe75590fad76194cf590878f3ac284f24
downloadjinja2-de512348ac20d4334411dae691dd54bc747b8519.tar.gz
Initial version of the new website
-rw-r--r--.gitignore1
-rw-r--r--Makefile8
-rw-r--r--_templates/layout.html19
-rw-r--r--community.rst32
-rw-r--r--config.yml4
-rw-r--r--index.rst83
-rw-r--r--static/jinja.pngbin0 -> 17999 bytes
-rw-r--r--static/style.css36
8 files changed, 183 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e35d885
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+_build
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9eb5ae6
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,8 @@
+build:
+ run-rstblog build
+
+serve:
+ run-rstblog serve
+
+upload:
+ scp -r _build/* pocoo.org:/var/www/werkzeug.pocoo.org
diff --git a/_templates/layout.html b/_templates/layout.html
new file mode 100644
index 0000000..190ed6f
--- /dev/null
+++ b/_templates/layout.html
@@ -0,0 +1,19 @@
+<!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>
diff --git a/community.rst b/community.rst
new file mode 100644
index 0000000..619d11b
--- /dev/null
+++ b/community.rst
@@ -0,0 +1,32 @@
+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/
diff --git a/config.yml b/config.yml
new file mode 100644
index 0000000..0813c7a
--- /dev/null
+++ b/config.yml
@@ -0,0 +1,4 @@
+---
+active_modules: []
+author: Armin Ronacher
+canonical_url: http://jinja.pocoo.org/
diff --git a/index.rst b/index.rst
new file mode 100644
index 0000000..5663fc0
--- /dev/null
+++ b/index.rst
@@ -0,0 +1,83 @@
+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/
diff --git a/static/jinja.png b/static/jinja.png
new file mode 100644
index 0000000..16fa06f
--- /dev/null
+++ b/static/jinja.png
Binary files differ
diff --git a/static/style.css b/static/style.css
new file mode 100644
index 0000000..ea2420a
--- /dev/null
+++ b/static/style.css
@@ -0,0 +1,36 @@
+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; }