forked from mde/ejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
305 lines (287 loc) · 15.2 KB
/
Copy pathindex.html
File metadata and controls
305 lines (287 loc) · 15.2 KB
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
<!DOCTYPE html>
<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
<head>
<title>EJS -- Embedded JavaScript templates</title>
<!-- Meta -->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="favicon.ico">
<link href='http://fonts.googleapis.com/css?family=Lato:300,400,300italic,400italic' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
<!-- Global CSS -->
<link rel="stylesheet" href="assets/plugins/bootstrap/css/bootstrap.min.css">
<!-- Plugins CSS -->
<link rel="stylesheet" href="assets/plugins/font-awesome/css/font-awesome.css">
<link rel="stylesheet" href="assets/plugins/prism/prism.css">
<!-- Theme CSS -->
<link id="theme-style" rel="stylesheet" href="assets/css/styles-2.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body data-spy="scroll">
<!-- ******HEADER****** -->
<header id="header" class="header">
<div class="container">
<h1 class="logo pull-left">
<a class="scrollto" href="#promo">
<span class="logo-title">EJS</span>
</a>
</h1><!--//logo-->
<nav id="main-nav" class="main-nav navbar-right" role="navigation">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target="#navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button><!--//nav-toggle-->
</div><!--//navbar-header-->
<div class="navbar-collapse collapse" id="navbar-collapse">
<ul class="nav navbar-nav">
<li class="active nav-item sr-only"><a class="scrollto" href="#promo">Home</a></li>
<li class="nav-item"><a class="scrollto" href="#about">About</a></li>
<li class="nav-item"><a class="scrollto" href="#features">Features</a></li>
<li class="nav-item"><a class="scrollto" href="#install">Get Started</a></li>
<li class="nav-item"><a class="scrollto" href="#docs">Docs</a></li>
<li class="nav-item"><a class="scrollto" href="#license">License</a></li>
<li class="nav-item"><a class="scrollto" href="#contact">Contact</a></li>
</ul><!--//nav-->
</div><!--//navabr-collapse-->
</nav><!--//main-nav-->
</div>
</header><!--//header-->
<!-- ******PROMO****** -->
<section id="promo" class="promo section offset-header">
<div class="container text-center">
<h2 class="title"><span class="highlight">
<span style="font-size: 60%;"><%=</span>
EJS
<span style="font-size: 60%;">%></span>
</span></h2>
<p class="intro">Simple. Effective. JavaScript templating.</p>
<div class="btns">
<a class="btn btn-cta-secondary" href="http://themes.3rdwavemedia.com/" target="_blank">Download</a>
</div>
<ul class="meta list-inline">
<li> </li>
</ul><!--//meta-->
</div><!--//container-->
<div class="social-media">
<div class="social-media-inner container text-center">
<ul class="list-inline"></ul>
</div>
</div>
</section><!--//promo-->
<!-- ******ABOUT****** -->
<section id="about" class="about section">
<div class="container">
<h2 class="title text-center">What is EJS?</h2>
<p class="intro text-center">
EJS is a simple templating language that lets you generate HTML
markup with plain JavaScript. No religiousness about how to
organize things. No reinvention of iteration and control-flow.
It's just plain JavaScript.
</p>
<div class="row">
<div class="item col-md-4 col-sm-6 col-xs-12">
<div class="icon-holder">
<i class="fa fa-heart"></i>
</div>
<div class="content">
<h3 class="sub-title">Use plain JavaScript</h3>
<p>We love JavaScript. It's a totally friendly language. Why reinvent iteration and control-flow in a different, dumbed-down language? Just use JS!</p>
</div><!--//content-->
</div><!--//item-->
<div class="item col-md-4 col-sm-6 col-xs-12">
<div class="icon-holder">
<i class="fa fa-clock-o"></i>
</div>
<div class="content">
<h3 class="sub-title">Fast development time</h3>
<p>Don't waste time and attention figuring out arcane new syntax because 'elegance' — or how to preprocess your data so it will actually render right.</p>
</div><!--//content-->
</div><!--//item-->
<div class="item col-md-4 col-sm-6 col-xs-12">
<div class="icon-holder">
<i class="fa fa-code"></i>
</div>
<div class="content">
<h3 class="sub-title">Simple syntax</h3>
<p>JavaScript code in simple, straightforward scriptlet tags. Just write JavaScript that emits the HTML you want, and get your shit done.</p>
</div><!--//content-->
</div><!--//item-->
<div class="clearfix visible-md"></div>
<div class="item col-md-4 col-sm-6 col-xs-12">
<div class="icon-holder">
<i class="fa fa-fighter-jet"></i>
</div>
<div class="content">
<h3 class="sub-title">Speedy execution</h3>
<p>EJS caches the intermediate JS functions for your templates, so execution is fast. V8 and other JS runtimes just keep getting faster — so should your templates.</p>
</div><!--//content-->
</div><!--//item-->
<div class="item col-md-4 col-sm-6 col-xs-12">
<div class="icon-holder">
<i class="fa fa-thumbs-up"></i>
</div>
<div class="content">
<h3 class="sub-title">Easy debugging</h3>
<p>It's easy to debug EJS errors: your errors are plain JavaScript exceptions, with template line-numbers included.</p>
</div><!--//content-->
</div><!--//item-->
<div class="item col-md-4 col-sm-6 col-xs-12">
<div class="icon-holder">
<i class="fa fa-flask"></i>
</div>
<div class="content">
<h3 class="sub-title">Active development</h3>
<p>EJS has a large community of active users, and the library is under active development. We're happy to answer your questions or give you help.</p>
</div><!--//content-->
</div><!--//item-->
</div><!--//row-->
</div><!--//container-->
</section><!--//about-->
<!-- ******FEATURES****** -->
<section id="features" class="features section">
<div class="container text-center">
<h2 class="title">Features</h2>
<ul class="feature-list list-unstyled">
<li><i class="fa fa-check"></i>Fast compilation and rendering</li>
<li><i class="fa fa-check"></i>Simple template tags: <% %></li>
<li><i class="fa fa-check"></i>Custom delimiters (e.g., use <? ?> instead of <% %>)</li>
<li><i class="fa fa-check"></i>Includes</li>
<li><i class="fa fa-check"></i>Both server JS and browser support</li>
<li><i class="fa fa-check"></i>Static caching of intermediate JavaScript</li>
<li><i class="fa fa-check"></i>Static caching of templates</li>
<li><i class="fa fa-check"></i>Complies with the <a href="http://expressjs.com">Express</a> view system</li>
</ul>
</div><!--//container-->
</section><!--//features-->
<section id="install" class="install section">
<div class="container">
<div class="install-inner">
<h2 class="title text-center">Get Started</h2>
<div class="block">
<h3 class="sub-title text-center">Install</h3>
<p>It's easy to install EJS in your app using NPM.</p>
<div class="code-block">
<!--//Use Prismjs - http://prismjs.com/index.html#basic-usage -->
<pre><code class="language-bash">$ npm install ejs</code></pre>
</div><!--//code-block-->
<h3 class="sub-title text-center">Use</h3>
<p>Pass EJS a template string and some data. BOOM, you've got some HTML.</p>
<div class="code-block">
<!--//Use Prismjs - http://prismjs.com/index.html#basic-usage -->
<pre><code class="language-javascript">var ejs = require('ejs'),
people = ['geddy', 'neil', 'alex'];
html = ejs.render('<%= people.join(", "); %>', {people: people});</code></pre>
</div><!--//code-block-->
</div><!--//block-->
</div><!--//install-inner-->
</div><!--//container-->
</section><!--//install-->
<!-- ******DOCS****** -->
<section id="docs" class="docs section">
<div class="container">
<div class="docs-inner">
<h2 class="title text-center">Docs</h2>
<div class="block">
<h3 class="sub-title text-center">HTML</h3>
<p><a href="http://prismjs.com/" target="_blank">PrismJS</a> is used as the syntax highlighter here.</p>
<p>Below are the details of the custom PrismJS build used in this template. You can <a href="http://prismjs.com/download.html" target="_blank">build your own version</a> via their website should you need to.</p>
<ul class="list-unstyled">
<li><strong>Compression level:</strong> Minified</li>
<li><strong>Theme:</strong> Okaidia</li>
<li><strong>Languages:</strong> Markup, CSS, C-like, JavaScript, PHP and Python</li>
</ul>
<div class="code-block">
<!--//Use Prismjs - http://prismjs.com/index.html#basic-usage -->
<pre><code class="language-markup">
<p class="my-style">
Hello World!
</p>
</code></pre>
</div><!--//code-block-->
</div><!--//block-->
<div class="block">
<h3 class="sub-title text-center">CSS</h3>
<p>Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus.</p>
<div class="code-block">
<!--//Use Prismjs - http://prismjs.com/index.html#basic-usage -->
<pre>
<code class="language-css">
/*
* Template Name: devAid - Responsive Website Template for developers
* Version: 1.0
* Author: Xiaoying Riley at 3rd Wave Media
* Website: http://themes.3rdwavemedia.com/
* Twitter: @3rdwave_themes
*/
body {
font-family: 'Lato', arial, sans-serif;
color: #444444;
font-size: 16px;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
</code></pre>
</div><!--//code-block-->
</div><!--//block-->
<div class="block">
<h3 class="sub-title text-center">JavaScript</h3>
<p>Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Lorem ipsum dolor sit amet, consectetuer adipiscing elit ligula eget dolor.</p>
<div class="code-block">
<pre><code class="language-javascript">
if( awesome ){
console.log('This is Awesome');
}else{
$('body').addClass('give-me-awesome');
}
</code></pre>
</div><!--//code-block-->
</div><!--//block-->
<div class="block">
<h3 class="sub-title text-center">Full Documentation</h3>
<p>If your documentation is very long you can host the full docs page (including FAQ etc) on GitHub and provide a Call to Action button below to direct users there.</p>
<p class="text-center">
<a class="btn btn-cta-primary" href="https://github.com/twbs/bootstrap" target="_blank">More on GitHub</a>
</p>
</div><!--//block-->
</div><!--//docs-inner-->
</div><!--//container-->
</section><!--//features-->
<!-- ******LICENSE****** -->
<section id="license" class="license section">
<div class="container">
<div class="license-inner">
<h2 class="title text-center">License</h2>
<p>
EJS is licensed under the Apache License, version 2.0. Information can found here: <a href="http://www.apache.org/licenses/">http://www.apache.org/licenses/</a>.
</p>
</div><!--//license-inner-->
</div><!--//container-->
</section><!--//how-->
<!-- ******FOOTER****** -->
<footer class="footer">
<div class="container text-center">
<small class="copyright">Designed with <i class="fa fa-heart"></i> by <a href="http://themes.3rdwavemedia.com" target="_blank">Xiaoying Riley</a> for developers</small>
</div><!--//container-->
</footer><!--//footer-->
<!-- Javascript -->
<script type="text/javascript" src="assets/plugins/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="assets/plugins/jquery-migrate-1.2.1.min.js"></script>
<script type="text/javascript" src="assets/plugins/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="assets/plugins/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/plugins/jquery-scrollTo/jquery.scrollTo.min.js"></script>
<script type="text/javascript" src="assets/plugins/prism/prism.js"></script>
<script type="text/javascript" src="assets/js/main.js"></script>
</body>
</html>