Dynamic HTML using Bootstrap

Hi. I want to use Bootstrap on every page of a website. The head and bottom will be fixed on all of them. Only the container inside the body will change on each page. Below is an example page:

<!doctype html>
<html lang="pt-br">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <link href="css/style.css" rel="stylesheet"/>
    <link href="fontawesome-free/css/all.css" rel="stylesheet"/>

    <title>Example</title>
  </head>
  <body>
  
    <div class="container">
      Each page will change this container. Everything else will be fixed.
    </div>
    
    <script src="bootstrap/js/bootstrap.bundle.min.js"></script>
  </body>
</html>

How do I code this HTML page using http_write?

I solved most of my problem. But, I still can’t change the language attribute

<html lang="pt-br">

My solution so far is

file base.pl

:- use_module(library(http/html_head)).
:- use_module(library(http/html_write)).

:- multifile
        user:body//2.

user:body(bootstrap, Body) -->
    html(body([ \html_post(head,
                           [ meta([name(viewport),
                                   content('width=device-width, initial-scale=1')])]),
                \html_requires(css('style.css')),
                \html_requires(bootstrap_css('bootstrap.min.css')),

                Body,

                script([src('bootstrap/js/bootstrap.bundle.min.js'),
                        type('text/javascript')],[])
              ])).

file home.pl

:- use_module(library(http/html_head)).
:- use_module(library(http/html_write)).

:- http_handler(root(.), home, []).

home(_Req):-
    reply_html_page(
        bootstrap,
        [ title('Example')],
        [ div(class(container),
             ['Each page will change this container. Everything else will be fixed.']).

file load.pl

:- load_files([ server,
                base,
                home
              ],
	          [ silent(true) ]).

You can add:

\html_root_attribute(lang,'pl-br')

to change the language.

Ian,
Thanks for the tip.