Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
33 posts
|
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 ? |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Administrator
2681 posts
|
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: ... [show rest of quote] Dan Allen | http://google.com/profiles/dan.j.allen |
Loading... |
Reply to author |
Edit post |
Move post |
Delete this post |
Delete this post and replies |
Change post date |
Print post |
Permalink |
Raw mail |
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
33 posts
|
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:
... [show rest of quote]
|
Free forum by Nabble | Edit this page |