forked from garann/template-chooser
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
123 lines (123 loc) · 5.28 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<!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>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 be the same language 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 logicful speedy compile parts string format">
<h2>doT.js</h2>
<a href="http://olado.github.com/doT/">project</a>
<span>(2.742k)</span>
</div>
<div class="add client-side server-side logicful compile parts string format">
<h2>EJS</h2>
<a href="http://embeddedjs.com/">project</a>
<span>(9.8k)</span>
</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>
<span>(2.5k)</span>
</div>
<div class="add client-side logicish parts string format">
<h2>ICanHaz.js</h2>
<a href="http://icanhazjs.com/">project</a>
<span>(5.445k)</span>
</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>
<span>(39.687k)</span>
</div>
<div class="add client-side server-side logicish compile parts string format">
<h2>JsRender</h2>
<a href="http://borismoore.github.com/jsrender/demos/index.html">project</a>
<span>(30.709k)</span>
</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>
<span>(1k)</span>
</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>
<span>(14.513k)</span>
</div>
<div class="add client-side server-side logicless string format">
<h2>Plates.js</h2>
<a href="https://github.com/flatiron/plates">github</a>
<span>(10.811k)</span>
</div>
<div class="add client-side logicless compile parts dom format">
<h2>pure.js</h2>
<a href="http://beebole.com/pure">project</a>
<span>(11.7k)</span>
</div>
<div class="add client-side logicless dom format">
<h2>Transparency</h2>
<a href="http://leonidas.github.com/transparency/">project</a>
<span>(5.491k)</span>
</div>
<div class="add client-side server-side logicful compile string format speedy">
<h2>Underscore templates</h2>
<a href="http://documentcloud.github.com/underscore/#template">project</a>
<span>(4k)</span>
</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>