Is there a way to allow bootstrap 4 designed web pages (as Nitrogen templates) to "interact" with Erlang Nitrogen?
Apart from breaking out all input fields, buttons and forms and converting it to Nitrogen, is it possible to leave the designed HTML pages intact and add tags to tell nitrogen to do the postback event on a button when rendering, or access the content of a field?
This is the designed bootstrap code for instance, and I would like to have the postback be handled by Nitrogen. (All the required javascript and css is included in the page, and the web page is the template of the Nitrogen module called).
<form class="form-horizontal m-t-20 " id="loginform" name="loginform" method="POST" action="#">
<div class="input-group mb-3 ">
<div class="input-group-prepend ">
<span class="input-group-text " id="basic-addon1 "><i class="ti-user "></i></span>
</div>
<input type="text " class="form-control form-control-lg " placeholder="Username " aria-label="Username " aria-describedby="basic-addon1 " id="login_username">
</div>
<div class="form-group text-center ">
<div class="col-xs-12 p-b-20 ">
<button class="btn btn-block btn-lg btn-info " type="submit" postback=login>Log In</button>
</div>
</div>