Skip to content

Anonymous tag #358

Closed Answered by rpaul-stripe
eerison asked this question in Q&A
Apr 19, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

No, you can't use a class annotation as an opening and closing element. You can, however, put a class annotation directly inside of a block to apply it to the block itself.

For example:

ABC {% .myclass %}

Is effectively:

<p class="myclass">ABC</p>

If you want a div wrapper you would have to define a custom named tag:

{% example .myclass %}
ABC
{% /example %}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@eerison
Comment options

Answer selected by eerison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants