Including documents from one point to the other end
Hello everyone,
The `include` directive can be used to include portions of a document either by specifying a line range or a set of tags. I wonder if it's possible to include a document by simply specifying an entry line and have the rest of the document included from there. My use case is to embed a source file but skipping the license header.
An alternative would be to allow the following syntax (borrowed from Groovy) if both ends of the range must be specified
On Sat, Feb 15, 2014 at 11:29 AM, aalmiray [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello everyone,
The `include` directive can be used to include portions of a document either by specifying a line range or a set of tags. I wonder if it's possible to include a document by simply specifying an entry line and have the rest of the document included from there. My use case is to embed a source file but skipping the license header.
An alternative would be to allow the following syntax (borrowed from Groovy) if both ends of the range must be specified
include::source.java[12..-1]
Thoughts?
If you reply to this email, your message will be added to the discussion below:
On Sat, Feb 15, 2014 at 11:29 AM, aalmiray [via Asciidoctor :: Discussion] <[hidden email]> wrote:
Hello everyone,
The `include` directive can be used to include portions of a document either by specifying a line range or a set of tags. I wonder if it's possible to include a document by simply specifying an entry line and have the rest of the document included from there. My use case is to embed a source file but skipping the license header.
An alternative would be to allow the following syntax (borrowed from Groovy) if both ends of the range must be specified
include::source.java[12..-1]
Thoughts?
If you reply to this email, your message will be added to the discussion below: