How to use bootstrap with vibe.d.

Arjan arjan at ask.me.to
Sat Nov 7 12:34:53 UTC 2020


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.


More information about the Digitalmars-d-learn mailing list