Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Integrating Twitter Bootstrap easily to any Pyramid form framework

I am building a web service based on Pyramid, MongoEngine and Twitter Bootstrap. It contains only few simple forms. What could be the best way to implement forms, so that they intergrate well with Twitter Bootstrap? Mostly I am worried about need to hack all the HTML together by hand myself.

  • What Pyramid frameworks play nicely with Bootstrap out of the box with add-ons?

  • In the case I need to spread CSS classes etc. stuff all over the templates what could be the easiest approach for this?

I am using MongoEngine models, but there are only very small number of those and adapting them to form framework is easy.

like image 276
Mikko Ohtamaa Avatar asked Feb 18 '23 16:02

Mikko Ohtamaa


1 Answers

Deform with deform_bootstrap is a reasonable choice.

deform_bootstrap: http://pypi.python.org/pypi/deform_bootstrap

You can take a look at what it looks like here:

http://deformdemo.xo7.de/

like image 154
Chris McDonough Avatar answered Feb 20 '23 10:02

Chris McDonough