summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
authorDan Bornstein <danfuzz@milk.com>2016-08-24 10:54:52 -0700
committerDan Bornstein <danfuzz@milk.com>2016-08-24 16:25:31 -0700
commit6d7f128b870cc405151e44484a35999a0cbb69b0 (patch)
tree4f3463fd0dbb47d425211fe8aa96bc8aceb8799c /src/templates
parent45266f90a3c70fe11e78f9bcc7f9b69359b7fef5 (diff)
downloadetherpad-lite-6d7f128b870cc405151e44484a35999a0cbb69b0.zip
Use an EEJS template for HTML export instead of inlining it in the JS code.
The semantics of all the substitutions are identical to what they were before. I _did_ take the liberty of formatting the CSS to be a bit more readable (at the cost of adding a little bit of whitespace).
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/export_html.html143
1 files changed, 143 insertions, 0 deletions
diff --git a/src/templates/export_html.html b/src/templates/export_html.html
new file mode 100644
index 00000000..24e83ac2
--- /dev/null
+++ b/src/templates/export_html.html
@@ -0,0 +1,143 @@
+<%- doctype %>
+<html lang="en">
+<head>
+<title><%- padId %></title>
+<meta name="generator" content="Etherpad">
+<meta name="author" content="Etherpad">
+<meta name="changedby" content="Etherpad">
+<meta charset="utf-8">
+<style>
+* {
+ font-family: arial, sans-serif;
+ font-size: 13px;
+ line-height: 17px;
+}
+ul.indent {
+ list-style-type: none;
+}
+ol {
+ list-style-type: none;
+ padding-left: 0;
+}
+body > ol {
+ counter-reset: first second third fourth fifth sixth seventh eigth ninth tenth eleventh twelth thirteenth fourteenth fifteenth sixteenth;
+}
+ol > li:before {
+ content: counter(first) ". ";
+ counter-increment: first;
+}
+ol > ol > li:before {
+ content: counter(first) "." counter(second) ". ";
+ counter-increment: second;
+}
+ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) ". ";
+ counter-increment: third;
+}
+ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) ". ";
+ counter-increment: fourth;
+}
+ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) ". ";
+ counter-increment: fifth;
+}
+ol > ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) ". ";
+ counter-increment: sixth;
+}
+ol > ol > ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) ". ";
+ counter-increment: seventh;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eigth) ". ";
+ counter-increment: eigth;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eigth) "." counter(ninth) ". ";
+ counter-increment: ninth;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eigth) "." counter(ninth) "." counter(tenth) ". ";
+ counter-increment: tenth;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eigth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) ". ";
+ counter-increment: eleventh;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eigth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) "." counter(twelth) ". ";
+ counter-increment: twelth;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eigth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) "." counter(twelth) "." counter(thirteenth) ". ";
+ counter-increment: thirteenth;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eigth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) "." counter(twelth) "." counter(thirteenth) "." counter(fourteenth) ". ";
+ counter-increment: fourteenth;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eigth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) "." counter(twelth) "." counter(thirteenth) "." counter(fourteenth) "." counter(fifteenth) ". ";
+ counter-increment: fifteenth;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > li:before {
+ content: counter(first) "." counter(second) "." counter(third) "." counter(fourth) "." counter(fifth) "." counter(sixth) "." counter(seventh) "." counter(eigth) "." counter(ninth) "." counter(tenth) "." counter(eleventh) "." counter(twelth) "." counter(thirteenth) "." counter(fourteenth) "." counter(fifteenth) "." counter(sixthteenth) ". ";
+ counter-increment: sixthteenth;
+}
+ol {
+ text-indent: 0px;
+}
+ol > ol {
+ text-indent: 10px;
+}
+ol > ol > ol {
+ text-indent: 20px;
+}
+ol > ol > ol > ol {
+ text-indent: 30px;
+}
+ol > ol > ol > ol > ol {
+ text-indent: 40px;
+}
+ol > ol > ol > ol > ol > ol {
+ text-indent: 50px;
+}
+ol > ol > ol > ol > ol > ol > ol {
+ text-indent: 60px;
+}
+ol > ol > ol > ol > ol > ol > ol > ol {
+ text-indent: 70px;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol {
+ text-indent: 80px;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
+ text-indent: 90px;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
+ text-indent: 100px;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
+ text-indent: 110px;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
+ text-indent: 120px;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
+ text-indent: 130px;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
+ text-indent: 140px;
+}
+ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol > ol {
+ text-indent: 150px;
+}
+<%- extraCSS %>
+</style>
+</head>
+<body>
+<%- body %>
+</body>
+</html>