Skip to main content
OK, so have fun! :D
-------------------
<%
var fruits = ["Apple", "Pear", "Orange", "Lemon"]
, random = " ".repeat(18).split("").map(x => Math.random())
%>
These fruits are amazing:
<% for(var i = 0; i < fruits.length; ++i) {%>
- <%=fruits[i]%>s<% } %>
Let's see some random numbers:
<% random.forEach((c, i) => {
%> <%=c.toFixed(10) + ((i + 1) % 6 === 0 ? "\n": "") %><%});%>
You can put any JS inside tags:
-------------------------------
2+4 = <%= 2+4 %>
<% /* This template is rendered with the following data:
var renderData = {
number: 78,
five: function() { return 5 },
arr: ['one', 'two', 'three', 'four'],
obj: {
key1: 'val1',
key2: 'val2',
key3: 'val3'
},
users: [{ name: 'Ben', job: 'Maintainer' },
{ name: 'Joe', job: 'Maintainer' }]
}
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
OK, so have fun! :D
-------------------

These fruits are amazing:

  - Apples
  - Pears
  - Oranges
  - Lemons

Let's see some random numbers:

 0.4193922794 0.6228021931 0.4946748664 0.4734661099 0.4200228956 0.4829773200
 0.3926212139 0.5054710648 0.4557519636 0.5392542480 0.2787087830 0.0554598288
 0.4238835750 0.5426317343 0.0571393859 0.6645722605 0.6323696400 0.3578555958

You can put any JS inside tags:
-------------------------------

2+4 = 6

Call functions
--------------
5

Display arrays
--------------
one,two,three,four