in python you could use the open method, to write a basic framework you could write:
new_page = open("name.html", "w")#change 'name' to whatever you want/input and you could use "a" to add to the page
framework = """
<html>
<head><title>basic framework</title></head>#add in any extra
<body>
<p>
This is some text
</p>
</body>
</html>
"""
new_page.write(framework)
You would need to use different inputs and editors for extras, but the admins should really move this to the python forum.