mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
Run literate
This commit is contained in:
@@ -93,6 +93,8 @@ arrayEqual = (a, b) ->
|
||||
for test in document.getElementsByClassName 'test'
|
||||
say '\u2714 ' + test.id
|
||||
try
|
||||
options = {}
|
||||
options.literate = yes if test.type is 'text/x-literate-coffeescript'
|
||||
CoffeeScript.run test.innerHTML
|
||||
catch error
|
||||
console.error error
|
||||
|
||||
Reference in New Issue
Block a user