Latest commit to the master branch
To start off:
from juno import *
@route('/')
def index(web):
return 'Juno says hi'
run()
Add some url handling:
@route('/hello/:name/')
def hello(web, name):
return 'Hello, %s' %name
Use a template:
@get('/hi_template/:name/')
def template_hi(web, name):
template('hello.html', name=name)
Build a model:
Person = model('Person', name='string')
p = Person(name='brian')
You can use easy_install:
easy_install Juno
Or pull from Github, and then do:
$ python setup.py install # As root
$ python
>>> import juno # Make sure everything worked
Requires: SQLAlchemy
Optional:
![[image]](http://mowser.com/img?url=https%3A%2F%2Fa248.e.akamai.net%2Fassets.github.com%2Fimages%2Fmodules%2Fajax%2Fbig_spinner_336699.gif%3F1310086001)
Headers
# This is an <h1> tag ## This is an <h2> tag ###### This is an <h6> tag
Text styles
*This text will be italic* _This will also be italic_ **This text will be bold** __This will also be bold__ *You **can** combine them*
Unordered
* Item 1 * Item 2 * Item 2a * Item 2b
Ordered
1. Item 1 2. Item 2 3. Item 3 * Item 3a * Item 3b
Images
 Format: 
Links
http://github.com - automatic! [GitHub](http://github.com)
Blockquotes
As Kanye West said: > We're living the future so > the present is our past.
Syntax highlighting with GFM
```javascript
function fancyAlert(arg) {
if(arg) {
$.facebox({div:'#foo'})
}
}
```
Or, indent your code 4 spaces
Here is a Python code example
without syntax highlighting:
def foo:
if not bar:
return true
Inline code for comments
I think you should use an `<addr>` element here instead.
You are viewing a mobilized version of this site...
View original page here