Skip to content

Commit c39723c

Browse files
committed
expanding literate explanation
1 parent d2f4009 commit c39723c

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

documentation/index.html.erb

+3-1
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@ Expressions
367367
Besides being used as an ordinary programming language, CoffeeScript may
368368
also be written in "literate" mode. If you name your file with a
369369
<tt>.litcoffee</tt> extension, you can write it as a Markdown document &mdash;
370-
a document that also happens to be executable CoffeeScript code.
370+
a document that also happens to be executable CoffeeScript code. The compiler
371+
will treat any indented blocks (Markdown's way of indicating source code)
372+
as code, and ignore the rest as comments.
371373
</p>
372374

373375
<p>

index.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,9 @@ <h2>
460460
Besides being used as an ordinary programming language, CoffeeScript may
461461
also be written in "literate" mode. If you name your file with a
462462
<tt>.litcoffee</tt> extension, you can write it as a Markdown document &mdash;
463-
a document that also happens to be executable CoffeeScript code.
463+
a document that also happens to be executable CoffeeScript code. The compiler
464+
will treat any indented blocks (Markdown's way of indicating source code)
465+
as code, and ignore the rest as comments.
464466
</p>
465467

466468
<p>

0 commit comments

Comments
 (0)