Search indices not available in the "Blended" search index:
- Appliances
- ArtsAndCrafts
- Baby
- Beauty
- Blended
- Classical
- DigitalMusic
- Grocery
function process(user) { | |
var model = new User(user); | |
model.save(_); | |
} | |
for (var i = 0; i < users.length; i++) { | |
process(users[i]); | |
} |
var obj, key, val; | |
obj = { | |
foo: 'bar', | |
hello: 'world' | |
}; | |
for (key in obj) { | |
val = obj[key]; | |
setTimeout(_, 1000); |
for i in foo | |
print 'hello' | |
### | |
hello? | |
### | |
print 'world' |
<h2>Error reporting</h2> | |
<p> | |
Does the error message for this page report the correct line number? | |
</p> | |
<% para = (phrase) -> %> | |
<p><%= phrase %></p> | |
<% end %> |
<h1>Multi-Line Blocks</h1> | |
<p> | |
It would be great to support multi-line blocks. | |
Here are some use cases: | |
</p> | |
<% | |
# Documentation via multiple lines of single-line comments. | |
# Like so. |
<h2>For-Each</h2> | |
<p> | |
This should print a list of names, no? | |
(It does in EJS.) | |
</p> | |
<% names = ['Alice', 'Bob', 'Carol'] %> | |
<ul> |
<h1>Comments ending in colons</h1> | |
<% # This comment ends in a colon: %> | |
<p> | |
That shouldn't be a problem for Eco! But it is. ;) | |
</p> |
h1 { | |
font-size: 1.5em; | |
font-weight: bold; | |
margin: 1em 0; | |
} | |
h2 { | |
font-size: 1.25em; | |
margin: 1em 0; | |
} |
Search indices not available in the "Blended" search index:
# synchronously creates the directory at the given path, including all | |
# intermediate directories, if it doesn't already exist. (like `mkdir -p`) | |
mkdirpSync = (dir) -> | |
# normalize and resolve path to an absolute one: | |
# (path.resolve automatically uses the current directory if needed) | |
dir = path.resolve path.normalize dir | |
# try to create this directory: | |
try |