-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_pages.py
More file actions
16 lines (12 loc) · 841 Bytes
/
build_pages.py
File metadata and controls
16 lines (12 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
__author__ = 'kremerdesign'
class Build_Page(object):
@classmethod
def html_boilerplate_start(cls): #This should be in another file
header_content1 = "{}\n\t{}\n\t\t{}".format("<!DOCTYPE html>", "<head>",
"<meta name='author' content='Ben Kremer Design'>")
header_content2 = "\n\t\t{}{}{}\n\t{}\n\t{}\n".format("<title>", "", "</title>", "</head>", "<body>")
return "{}{}".format(header_content1, header_content2)
# return "{}\n\t{}\n\t\t{}\n\t\t{}{}{}\n\t{}\n\t{}\n".format("<!DOCTYPE html>", "<head>", "<meta name='author' content='Ben Kremer Design'>", "<title>", "", "</title>", "</head>", "<body>")
@classmethod
def html_boilerplate_end(cls): #This could be in another file.
return "\n\t{}\n{}".format("</body>", "</html>")