Probably reading the docs wrong but it seems to me if i need to insert the value of a built-in data attribute into a document, something like this should work:
== {doctitle} Version of the processor: {asciidoctor-version} also tried :doctitle: but thats doesn't yield anything either what am i missing ? |
Administrator
|
This should work, but of course your document needs to have a title. ```asciidoc = Document Title The title of this document is {doctitle}.
The version of Asciidoctor is {asciidoctor-version} ``` Run the following command: $ asciidoctor -o - -s sample.adoc Here's the result I get: ```html <div class="paragraph"> <p>The title of this document is Document Title.</p>
</div> <div class="paragraph"> <p>The version of Asciidoctor is 1.5.0.dev.</p> </div> ```
-Dan On Sat, Mar 22, 2014 at 6:41 AM, jnorthr [via Asciidoctor :: Discussion] <[hidden email]> wrote: Probably reading the docs wrong but it seems to me if i need to insert the value of a built-in data attribute into a document, something like this should work: Dan Allen | http://google.com/profiles/dan.j.allen |
definitely head-scratch on this one.... i must play with your ideas
to see if they work 4 me
more soon thx jim On 18/06/14 04:20, mojavelinux [via
Asciidoctor :: Discussion] wrote:
|
Free forum by Nabble | Edit this page |