My favorites | Sign in
Project Logo
             
Show all Featured wiki pages:
Documentation
People details
Project owners:
  dirk.holtwick

See online documentation for more samples and infos http://www.pyxer.net/docs/pyxer.html

Introduction

Yet another Python Framework! The goal of this project to make web development as easy as possible to enable the developer to start quickly with a new project. This project should be distributable via PasteDeploy for normal servers and for Google App Engine (GAE), without the need of using different technologies and approaches.

Example

Minimal init.py:

from pyxer.base import *

@controller
def index():
    return "Hello World"

Templating Language

Since Genshi does not work on GAE a new Templating Language comes with Pyxer that is very similar to the syntax of Genshi and Kid. Here is a simple example of a controller using a template:

from pyxer.base import *

@controller
def index():
    c.somelist=[1,2,3]

And the corresponding template named "index.html":

<ol>
  <li py:for="value in c.somelist">
   Value: $value
  </li>
</ol>

Online Demo

The most recent examples can be accessed here: http://pyxer.appspot.com









Hosted by Google Code