How to declare metadata tags using python dominate

433 views Asked by At
import dominate
from dominate import tags as tags

doc = dominate.document(title="Monitormaneto Data Center EOSP")
with doc:
    tags.meta(<meta http-equiv="refresh" content="30; URL="domain.url")
    tags.style("body{font-family:Helvetica}")
    ...
1

There are 1 answers

1
abhishek On

Consider revising the argument passed to tags.meta() in your code:

import dominate
from dominate import tags as tags

doc = dominate.document(title="Monitormaneto Data Center EOSP")
with doc:
    # tags.meta(<meta http-equiv="refresh" content="30; URL="domain.url")
    tags.meta(http_equiv="refresh", content="30; URL=domain.url")
    tags.style("body{font-family:Helvetica}")