Search indices not available in the "Blended" search index:
- Appliances
- ArtsAndCrafts
- Baby
- Beauty
- Blended
- Classical
- DigitalMusic
- Grocery
async = (_) -> | |
setTimeout _, 1000 | |
switch true | |
when true | |
alert 'about to start async' | |
async _ | |
# this never executes! | |
alert 'done w/ async' |
# WARNING: This will no longer work with CoffeeScript 1.3.2 in IE: | |
# http://coffeescript.org/#changelog | |
class Animal | |
@is: (node) -> | |
if not @TYPE then return true | |
node.type is @TYPE | |
@isnt: (node) -> | |
not @is node |
// app-dev.js | |
// Helper script to register CoffeeScript and Streamline extension handlers | |
// before running an app during development. | |
// | |
// Uses https://github.com/aseemk/coffee-streamline for efficient require(), | |
// caching compiled files between runs. Sweet! | |
// | |
// Usage: instead of `_coffee app`, just do `node app-dev app`. | |
// | |
// Also works great w/ node-dev <https://github.com/fgnass/node-dev>: |
# require-watcher.coffee | |
# Watches files that have been require()'d, and if they change, exits the | |
# current process, assuming that node-supervisor will then restart it. | |
fs = require 'fs' | |
# watch handler to exit the process on file changes: | |
watchFile = (filename) -> | |
fs.watchFile filename, (oldStat, newStat) -> |
# 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 |
Search indices not available in the "Blended" search index:
h1 { | |
font-size: 1.5em; | |
font-weight: bold; | |
margin: 1em 0; | |
} | |
h2 { | |
font-size: 1.25em; | |
margin: 1em 0; | |
} |
<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> |
<h2>For-Each</h2> | |
<p> | |
This should print a list of names, no? | |
(It does in EJS.) | |
</p> | |
<% names = ['Alice', 'Bob', 'Carol'] %> | |
<ul> |
<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. |