Syntax of Intrinsic Attributes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Syntax of Intrinsic Attributes

jnorthr
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 ?
Reply | Threaded
Open this post in threaded view
|

Re: Syntax of Intrinsic Attributes

mojavelinux
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:

== {doctitle}

Version of the processor: {asciidoctor-version}


also tried :doctitle:  but thats doesn't yield anything either
what am i missing ?



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Syntax-of-Intrinsic-Attributes-tp1635.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--
Reply | Threaded
Open this post in threaded view
|

Re: Syntax of Intrinsic Attributes

jnorthr
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:
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:

== {doctitle}

Version of the processor: {asciidoctor-version}


also tried :doctitle:  but thats doesn't yield anything either
what am i missing ?



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Syntax-of-Intrinsic-Attributes-tp1635.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



--



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/Syntax-of-Intrinsic-Attributes-tp1635p1822.html
To unsubscribe from Syntax of Intrinsic Attributes, click here.
NAML