asciidoctor / asciidoctor.js

:scroll: A JavaScript port of Asciidoctor, a modern implementation of AsciiDoc
https://asciidoctor.org
MIT License
739 stars 136 forks source link

How can i integrate backends or How can i create a new backend for Asciidoctorjs #85

Closed rahmanusta closed 5 years ago

rahmanusta commented 9 years ago

How can i integrate backends or How can i create a new backend for Asciidoctorjs?

mojavelinux commented 9 years ago

This is essentially a duplicate of #5, if we are talking about a backend based on templates.

It is possible today to implement a Ruby-based backend and cross compile it with Opal. Here's an example of a Ruby-based backend (something I do still need to formally document).

https://gist.github.com/mojavelinux/a086e542a145a7709b98

Note that a lot of that file is just the implementation. Mostly focus on the methods defined and the DSL used.

mojavelinux commented 9 years ago

I'm adding the documentation label to this issue since, at the very least, this needs to be documented.

rahmanusta commented 9 years ago

Thanks @mojavelinux . Unfortunately, i dont know Ruby enough yet. But, im thinking to try it.

mojavelinux commented 9 years ago

If you can code in Java or JavaScript, you can code in Ruby. It's probably one of the easiest languages to understand I've ever seen. It took me a weekend to know enough to make working code when I first picked it up.

ggrossetie commented 7 years ago

I'm adding the documentation label to this issue since, at the very least, this needs to be documented.

@mojavelinux Speaking of documentation, I'm wondering if I should use the GitHub wiki, stick with the "user manual" page (where all topics are mixed) or use http://asciidoctor.org/docs/ ?

mojavelinux commented 5 years ago

Awesome work!