33 lines
1 KiB
HTML
33 lines
1 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Go Template Playground - Tools</title>
|
||
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css">
|
||
|
<link rel="stylesheet" href="style.css">
|
||
|
</head>
|
||
|
<body class="container">
|
||
|
<header>
|
||
|
<hgroup>
|
||
|
<h1>Go Template Playground</h1>
|
||
|
<p>Playground of <a href="https://pkg.go.dev/text/template" target="_blank">text/template</a>.</p>
|
||
|
</hgroup>
|
||
|
</header>
|
||
|
<div class="inputs grid">
|
||
|
<div class="text-display">
|
||
|
<textarea id="template" placeholder="Template code">Hello, {{.what}}</textarea>
|
||
|
<div id="template-message"></div>
|
||
|
</div>
|
||
|
|
||
|
<div class="text-display">
|
||
|
<textarea id="data" placeholder="JSON data">{"what":"world"}</textarea>
|
||
|
<div id="data-message"></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="output">
|
||
|
<div id="output"></div>
|
||
|
</div>
|
||
|
<script src="main.js" type="module"></script>
|
||
|
</body>
|
||
|
</html>
|