Creating adoc files dynamically with blocks
Posted by guidog on
URL: https://discuss.asciidoctor.org/Creating-adoc-files-dynamically-with-blocks-tp8165.html
Hi,
I want to create a new adoc file dynamically using blocks, in the following way:
doc = Asciidoctor::Document.new
....
doc << block1
doc << block2
...
If I do that, is it possible to write the source content to a new adoc file?
I don't want to convert it at this point, I just want to read an adoc file and generate a new file with some modifications.
It is like a converter to Asciidoc itself or a pretty printer for Asciidoctor::Document
Thanks
guido