Created
February 5, 2014 17:48
-
-
Save gAmUssA/8829382 to your computer and use it in GitHub Desktop.
shell script POC with opal, asciidoctor and nashorn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env jjs -scripting | |
load("./lib/opal.js"); | |
load("./lib/asciidoctor.js"); | |
var data = <<<EOS; | |
= asciidoctor.js, AsciiDoc in JavaScript | |
Doc Writer <docwriter@example.com> | |
Asciidoctor and Opal come together to bring | |
http://asciidoc.org[AsciiDoc] to the browser!. | |
== Technologies | |
* AsciiDoc | |
* Asciidoctor | |
* Opal | |
NOTE: That's all she wrote!!! | |
EOS | |
print(Opal.Asciidoctor.$render(data)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment