when-websocket-met-asciidoctor
when-websocket-met-asciidoctor copied to clipboard
Asciidoctor as a Service
UPDATE: ran out of resouces so this won't work now but see below for a better idea !
OK, as Max said - AsciiDoc as a Service - going down this line a bit more, if i key the following byte stream into a browser address bar+enter, my primitive module from a cloud foundry server returns what we would expect:
http://asciidoctors.de.a9sapp.eu/asciidoc.groovy?toc=toc&backend=html&theme=native&payload=%3D+My+Notes+About+AsciiDoctor%0D%0AMax+%3Cgreaumaxime%40gmail.com%3E%0D%0Av1.0%2C+2014-02-01%0D%0A%0D%0A%3D%3D+Nice+Tutorial%0D%0Ahttp%3A%2F%2Fasciidoctor.org%2Fdocs%2Fasciidoc-writers-guide%2F%5BWriter%27s+Guide%5D%0D%0A%0D%0A%3D%3D+Samples+And+References+%0D%0AWe+could
it's url encoded, so funny char.s are translated to hex, so for my french char.s look nice. Yes, was hoping for a websocket solution like you suggested - maybe next try -
found an extremely interesting website that let's us develop an API specification interactively. Then it publishes documentation about the declared API. So just for grins, have done edit-adoc api spec here: http://docs.editadoc.apiary.io/
now just need to fix the app code to make it work :-}
NOTE: below service is not stable - so try later if it fails first time :+1: ok, just for fun and have a few days spare, if you need asciidoctor as an http service then
- open browser
- focus on address bar
- key in the following : http://caelyf-doctor.de.a9sapp.eu/render?= My Docs\nfred [email protected]\n\n== Section One\n\nHi kids\n\nTIP: eat peanuts.
- press enter
- laugh :)