vendredi 2 juillet 2021

Is it possible to customize bootstrap template with Python?

I have a bootstrap template that has some divs. Classes of these divs I know. For example, there is a div with class "summary". I want to be able to push some text in this div using that class. lets assume I write something like this.

<div class="summary">
<p>
</p>
</div>

The above is my HTML from the template.

template = read_html_template("path of template here")
template_divs = template.divs()
template_divs['summary']['p'].push("This is summary text.")

Is it possible via any package, library in Python? Please note I know about flask. I want to be able to do it in simple python.




Aucun commentaire:

Enregistrer un commentaire