Skip to content

Instantly share code, notes, and snippets.

@gAmUssA
Created February 5, 2014 17:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gAmUssA/8829382 to your computer and use it in GitHub Desktop.
Save gAmUssA/8829382 to your computer and use it in GitHub Desktop.
shell script POC with opal, asciidoctor and nashorn
#!/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