Tags

Block Level Tags

Block level HTML tags are represented the following ways in Aah:

+div
    // Content goes here. Note that the content begins with a tab.
+p: This is an example.

These two styles can be mixed and matched.

+div
    +p: This is an example.

Generated HTML

<div>
    <p>This is an example.</p>
</div>

Inline Tags

-strong::bold text::

Standard inline HTML can also be used: <strong>bold text</strong>.

Attributes

Attributes can be added to block and inline level tags.

+div{"class"=>"class-name"}
-strong{"class"=>"class-name"}::bold text::

Generated HTML

<div class="class-name"></div>
<strong class="class-name">bold text</strong>