improve render logic in AsciidocTemplate