1 | <!DOCTYPE html>
|
2 | <html lang="en">
|
3 | <head>
|
4 | <meta charset="UTF-8">
|
5 | <meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 | <title>Micromustache Playground</title>
|
7 | <link rel="stylesheet" href="index.css">
|
8 | </head>
|
9 | <body>
|
10 | <header>
|
11 | <h1>
|
12 | <label title="Options"><input type="checkbox" id="options-toggle" hidden />⚙</span></label>
|
13 | Micromustache Playground
|
14 | </h1>
|
15 | </header>
|
16 | <main>
|
17 | <aside id="options" hidden>
|
18 | <h2>Options</h2>
|
19 | <label><input type="checkbox" id="propsExist" />Props Exist</label>
|
20 | <br/>
|
21 | <label><input type="checkbox" id="explicit" />Explicit</label>
|
22 | <br/>
|
23 | <label><input type="checkbox" id="validateVarNames" />Validate Var Names</label>
|
24 | <br/>
|
25 | <label><h3>Depth</h3><input id="depth" class="io entry" type="number" min="0" max="20" value="5"/></label>
|
26 | <label><h3>Max var name length</h3><input id="maxVarNameLength" class="io entry" type="number" min="0" max="100" value="30"/></label>
|
27 | <label>
|
28 | <h3>Open tag</h3>
|
29 | <input id="tag0" class="io entry" type="text" value="{{"/>
|
30 | </label>
|
31 | <label>
|
32 | <h3>Close tag</h3>
|
33 | <input id="tag1" class="io entry" type="text" value="}}"/>
|
34 | </label>
|
35 | </aside>
|
36 | <section>
|
37 | <label for="example-selector"><h2>Examples</h2></label>
|
38 | <select id="example-selector" class="io entry"></select>
|
39 |
|
40 | <label for="template"><h2>Template</h2></label>
|
41 | <textarea id="template" class="io entry"></textarea>
|
42 | <div id="template-error" class="error"></div>
|
43 |
|
44 | <label for="scope"><h2>Scope</h2></label>
|
45 | <textarea id="scope" class="io entry"></textarea>
|
46 | <div id="scope-error" class="error"></div>
|
47 |
|
48 | <label><h2>Result</h2></label>
|
49 | <div id="result" class="io"></div>
|
50 | <div id="result-error" class="error"></div>
|
51 | </section>
|
52 | </main>
|
53 | <footer>
|
54 | <ul>
|
55 | <li><a href="https://github.com/userpixel/micromustache">Github</a></li>
|
56 | <li><a href="https://www.npmjs.com/package/micromustache">NPM</a></li>
|
57 | <li><a href="https://userpixel.github.io/micromustache/">API</a></li>
|
58 | <li><a href="https://github.com/userpixel/micromustache/wiki/FAQ">FAQ</a></li>
|
59 | <li><a href="https://github.com/userpixel/micromustache/wiki/Known-issues">Known Issues</a></li>
|
60 | <li><a href="https://twitter.com/alexewerlof">Twitter</a></li>
|
61 | </ul>
|
62 | </footer>
|
63 | <script src="../dist/micromustache.umd.js"></script>
|
64 | <script src="examples.js"></script>
|
65 | <script src="index.js"></script>
|
66 | </body>
|
67 | </html>
|