-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhtmlTemplates.go
29 lines (25 loc) · 1.87 KB
/
htmlTemplates.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package main
var templates = map[string]string {
"waveMark": "<!--\nThis Document is generated using Wave.\nWave: https://www.github.com/KILLinefficiency/Wave\n-->\n\n",
"htmlTopBody": "<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<title>%s</title>\n\t</head>\n",
"htmlCSS": "\t<body style = 'background-color: %s; background-image: %s; margin: %spx; border-style: %s;'>\n",
"css": "style = 'font-family: %s; color: %s; background-color: %s; font-size: %spx; text-align: %s; margin: %spx; border-style: %s; list-style-type: %s;'",
"text": "\t\t<p %s>%s</p>\n",
"link": "\t\t<div %s>\n\t\t\t<a href = '%s' target = '_blank' %s>%s</a>\n\t\t</div><br>\n",
"mail": "\t\t<div %s>\n\t\t\t<a href = 'mailto:%s' %s>%s</a>\n\t\t</div><br>\n",
"points": "\t\t\t<li>%s</li>\n",
"pointsBody": "\t\t<%s %s>\n%s\t\t</%s>\n",
"tableBorder": "style = 'border: 2px solid black; padding: 5px; border-color: %s;'",
"tableValues": "\t\t\t\t\t<td %s>%s</td>\n",
"tableBody": "\t\t\t\t<tr %s>\n%s\t\t\t\t</tr>\n",
"tableComplete": "\t\t<div %s>\n\t\t\t<table %s>\n%s\t\t\t</table>\n\t\t</div>\n",
"checkbox": "\t\t\t<input type = 'checkbox'>%s<br>\n",
"checkboxBody": "\t\t<div %s>\n%s\t\t</div>\n",
"quote": "\t\t<div %s><br><blockquote><b><i>%s</b></i></blockquote><br></div>\n",
"image": "\t\t<div style = 'text-align: %s; margin: %spx; border-style: %s;'>\n\t\t\t<img width = '%s' height = '%s' src = %s>\n\t\t</div>\n",
"htmlEnd": "\t</body>\n</html>\n",
}
var messageTemplates = map[string]string {
"help": "No Wave Script passed.\nPass in a Wave Script as a command-line argument.\nLike:\n\twave <scriptName>\n",
"fileNotFoundError": "Unable to create file: %s\n\nSource Code for the Document:\n\n%s\n",
}