-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
25 lines (25 loc) · 924 Bytes
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Pug to HTML</title>
<style>
h1 {
font-family: sans-serif;
}
</style>
</head>
<body>
<h1>Pug to HTML converter</h1>
<div style="display: flex;">
<textarea id="input" rows="30" style="width: 100%; height: 100%; font-family: monospace;">
</textarea>
<textarea id="output" rows="30" style="width: 100%; height: 100%; font-family: monospace; margin-left: 1em">
</textarea>
</div>
<p>This uses <a href="https://browserify.org/">Browserify</a> to run the Pug compiler directly in the browser. The (source) code is very simple and can be viewed <a href="https://github.com/brynedwards/pug2html">here</a>.</p>
<button id="convert">Convert</button>
<script src="bundle.js"></script>
</body>
</html>