Re: How to use bootstrap with vibe.d.
On Thursday, 5 November 2020 at 16:22:11 UTC, Alaindevos wrote: This is from the bootstrap documentation. I think you must adapt this to .dt files. dt files are basically pugjs https://pugjs.org/ files. When you use vscode with this extension: https://marketplace.visualstudio.com/items?itemName=ditto.convert-html-to-pug It becomes easy to convert from html to pug/dt.
Re: How to use bootstrap with vibe.d.
On Thursday, 5 November 2020 at 16:22:11 UTC, Alaindevos wrote: This is from the bootstrap documentation. I think you must adapt this to .dt files. ``` ... ... html( lang='nl' ) head title #{pageTitle} meta( charset="utf-8") meta( name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" ) link( rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css; integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous") //- fontawesome icons from localhost link( rel="stylesheet" href="/css/fontawesome.css" ) link( rel="stylesheet" href="/css/brands.css" ) link( rel="stylesheet" href="/css/solid.css" ) body //- main page0 div.d-flex.flex-column.h-100 //- nav bar nav.navbar.navbar-expand-sm.sticky-top ... ``` Like this.
Re: How to use bootstrap with vibe.d.
On Thursday, 5 November 2020 at 16:22:11 UTC, Alaindevos wrote: This is from the bootstrap documentation. I think you must adapt this to .dt files. Correct. It looks like flask_bootstrap is just a convenience that injects the js and css scripts or script URI for you into master flask template.
Re: How to use bootstrap with vibe.d.
It know it gives you nice buttons. I suppose to use it you add the bootstrap .js and .css file links to the diet templates.
Re: How to use bootstrap with vibe.d.
On Wednesday, 4 November 2020 at 19:01:16 UTC, Alaindevos wrote: (title). In flask it is "from flask_bootstrap import Bootstrap". But what do you have to do with vibe.d ? I am not sure you really understand what bootstrap is?
How to use bootstrap with vibe.d.
(title). In flask it is "from flask_bootstrap import Bootstrap". But what do you have to do with vibe.d ?