Skip to content

Commit

Permalink
fixed examples in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
skariel committed Jan 7, 2014
1 parent 2c1e010 commit bc29d00
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##Webalchemy
Modern web development with Python, powered by [Pythonium](https://github.com/pythonium/pythonium) and [Tornado](https://github.com/facebook/webalchemy.tornado) (and in the future AsyncIO, AutobahnPython, PyZMQ). it's [MIT licensed](LICENSE.txt)
Modern web development with Python, powered by [Pythonium](https://github.com/pythonium/pythonium) and [Tornado](https://github.com/facebook/webalchemy.tornado). it's [MIT licensed](LICENSE.txt)

- Angular style TodoMVC [live demo](http://skariel.org/webalchemy/todomvc.html) -- [Source](https://github.com/skariel/webalchemy/tree/master/webalchemy/examples/todomvc)
- Meteor style realtime and live editing [video](https://vimeo.com/74150054) -- [Source](https://github.com/skariel/webalchemy/blob/master/webalchemy/examples/colors_meteor_example.py) (this screencast is old, still containing some JS. a new one is WIP)
Expand All @@ -9,8 +9,9 @@ Modern web development with Python, powered by [Pythonium](https://github.com/py

###Installation

* Use Python3
* Make sure you use Python3
* Copy the webalchemy directory to your project root directory (yeah, poorman's install, never fails!)
* no external dependencies, all Pure Python, all included. Arriving to PIP soon :)

###Tutorial and Documentation

Expand Down Expand Up @@ -158,15 +159,15 @@ This is a client-only app. It can be served from a websocket like this:
```python
from webalchemy import server
from webalchemy.examples.todomvc.todomvc import AppTodoMvc as app
server.run(app, main_html_file_path='static/template/index.html')
server.run(app)
```

or it can be "frozen" to be served from a static folder (see [live demo](http://skariel.org/webalchemy/todomvc.html))like this:

```Python
from webalchemy import server
from webalchemy.examples.todomvc.todomvc import AppTodoMvc as app
server.generate_static(app, writefile='todomvc.html', main_html_file_path='static/template/index.html')
server.generate_static(app, writefile='todomvc.html')
```

more on this app [here](https://github.com/skariel/webalchemy/tree/master/webalchemy/examples/todomvc)
Expand Down

0 comments on commit bc29d00

Please sign in to comment.