forked from garann/template-chooser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
99 lines (99 loc) · 4.5 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!doctype html>
<html lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>So you need a template engine..</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<a href="https://github.com/garann/template-chooser" class="forkme"><img src="http://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub" /></a>
<h1>Amazing Magical Template-Engine-Chooser!</h1>
<div class="criteria">
<fieldset class="off">
<legend>Is this for use on the client or the server?</legend>
<label>client <input type="radio" name="radSide" value="client-side" /></label>
<label>server <input type="radio" name="radSide" value="server-side" /></label>
<label>both <input type="radio" name="radSide" value="client-side.server-side" /></label>
</fieldset>
<fieldset class="off">
<legend>How much logic should it have?</legend>
<label>the entirety of JS <input type="radio" name="radLogic" value="logicful" /></label>
<label>just the basics <input type="radio" name="radLogic" value="logicish" /></label>
<label>none at all <input type="radio" name="radLogic" value="logicless" /></label>
</fieldset>
<fieldset class="off">
<legend>Does it need to be one of the very fastest?</legend>
<label>yes <input type="radio" name="radSpeed" value="speedy" /></label>
<label>no <input type="radio" name="radSpeed" value="" /></label>
</fieldset>
<fieldset class="off">
<legend>Do you need to pre-compile templates?</legend>
<label>yes <input type="radio" name="radCompile" value="compile" /></label>
<label>no <input type="radio" name="radCompile" value="" /></label>
</fieldset>
<fieldset class="off">
<legend>Do you need partials?</legend>
<label>yes <input type="radio" name="radParts" value="parts" /></label>
<label>no <input type="radio" name="radParts" value="" /></label>
</fieldset>
<fieldset class="off">
<legend>Do you want a DOM structure, or just a string?</legend>
<label>DOM <input type="radio" name="radDom" value="dom" /></label>
<label>string <input type="radio" name="radDom" value="string" /></label>
</fieldset>
<fieldset class="off">
<legend>Aside from template tags, should it look the same before and after rendering?</legend>
<label>yes <input type="radio" name="radHtml" value="format" /></label>
<label>no <input type="radio" name="radHtml" value="not-format" /></label>
</fieldset>
</div>
<div class="engines">
<div class="add client-side server-side logicful compile dom not-format">
<h2>dom.js</h2>
<a href="https://github.com/medikoo/domjs">github</a>
</div>
<div class="add client-side server-side logicish speedy compile parts string format">
<h2>doT.js</h2>
<a href="http://olado.github.com/doT/">project</a>
</div>
<div class="add client-side server-side logicful compile parts string format">
<h2>EJS</h2>
<a href="http://embeddedjs.com/">project</a>
</div>
<div class="add client-side server-side logicish compile parts string format">
<h2>Handlebars.js</h2>
<a href="http://handlebarsjs.com/">project</a>
</div>
<div class="add client-side server-side logicish compile parts string format">
<h2>Hogan.js</h2>
<a href="http://twitter.github.com/hogan.js/">project</a>
</div>
<div class="add client-side logicish parts string format">
<h2>ICanHaz.js</h2>
<a href="http://icanhazjs.com/">project</a>
</div>
<div class="add client-side server-side logicish compile parts string not-format">
<h2>Jade templates</h2>
<a href="https://github.com/visionmedia/jade">github</a>
</div>
<div class="add client-side server-side logicful speedy compile string format">
<h2>Microtemplating</h2>
<a href="http://ejohn.org/blog/javascript-micro-templating/">blog post</a>
</div>
<div class="add client-side server-side logicish parts string format">
<h2>Mustache.js</h2>
<a href="https://github.com/janl/mustache.js/">github</a>
</div>
<div class="add client-side server-side logicless string format">
<h2>Plates.js</h2>
<a href="https://github.com/flatiron/plates">github</a>
</div>
<div class="add client-side server-side logicful compile string format">
<h2>Underscore templates</h2>
<a href="http://documentcloud.github.com/underscore/#template">project</a>
</div>
</div>
</body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="script.js"></script>
</html>