watsonpy / watson-framework

A Python 3 web app framework.
BSD 3-Clause "New" or "Revised" License
104 stars 12 forks source link

sample application #16

Closed krystian566 closed 9 years ago

krystian566 commented 9 years ago

test application is this same like start application? Can some one can paste something?

simoncoulton commented 9 years ago

Hey Krystian, I'm putting together a small sample application at the moment (complete with Gulp integration and a few other things), I'll put it up once it's done.

EDIT: Unfortunately I've had another larger client project take up my time, but will release a larger demo application (which has a CMS built into it) shortly.

krystian566 commented 9 years ago

I go up in my project.

krystian566 commented 9 years ago

ssh and login session i whant to see how you do your implement

jtulak commented 9 years ago

Anything new about the sample application? For the start, it would be nice to see a basic one. Just an example of few routes, a bit of html templates, one or two small models, and so on.

By the way, is there a way how to include a {% block foo %} from one view file in another? For example, big part of <head></head> is the same on all pages, as well as some generic page structure... A top-level layout which is used first, and then its {% block content %} is filled by the specific view is a nice way how to simplify the code.

I suppose it should be possible, by the look of TEMPLATE in views/renderers/jinja2.py, but I can't find how to use it.

simoncoulton commented 9 years ago

Hey @BroukPytlik, I've just put up a basic Todo application at https://github.com/watsonpy/sample-todo-application which might give you a couple of ideas with regards to templating :)

EDIT: Note that the above application is just an example of how to piece together parts of Watson. I've intentionally left out frontend technologies as everyones project structure will ultimately be different and Watson doesn't force anyone into a rigid structure. That said, you can see how I prefer to structure my projects (including Gulp/Ansible/Vagrant) at https://github.com/Bespohk/web-project.