yesodweb / yesod-scaffold

The Yesod scaffolding, with branches for different versions.
MIT License
76 stars 39 forks source link

Added bootstrap.js from a CDN to make navbar collapse and uncollapse to work. #159

Closed frt closed 7 years ago

frt commented 7 years ago

This template includes only the bootstrap.css file, so lines like the following doesn't work. This is from the default-layout.hamlet that comes with the template:

<button type="button" .navbar-toggle.collapsed data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">

To solve this I put a <script src="... in the default-layout-wrapper.hamlet, so it gets the bootstrap.js from a CDN.

snoyberg commented 7 years ago

Thanks!