View on GitHub

Play-example-bootstrap

Download this project as a .zip file Download this project as a tar.gz file

screenshot

An example play application illustrating the use of Twitter Bootstrap 2.x with Play 2.x.

Key Points

Download and install Bootstrap to your project:

Make Twitter Bootstrap files available within your application:

Tweak the body element so that it doesn't display underneath the "fixed top" navbar used in this example:

If using forms, provide a new Play "helper" definition so that forms display correctly:

Make the current page "active" in the navbar:

Usage

Download the system, invoke play run from the top-level directory, then go to http://localhost:9000/ to see the system. It should look like the screen image at the top of this page.

Screencast

Click the image below to watch a 13 minute walkthrough of this example:

Note this screencast was made in May, 2013 so does not show later changes to this system.

Comments? Questions?

Please create a github issue.

Revision History