Markup tags

Each tag has a specific semantic and should be use only for its purpose. If you need a generic tag, you probably want a group tag.

All tags accept a class attribute that stores the class list as follow:

<anytag class="classname0 classname1 classname2"></anytag>

view

Example:

<view name="foo">
      <!-- any tag from below -->
</view>

Context:

Need to be declared at the root of the markup file. Otherwise, it will be ignored and the parser will emit a warning.

Attributes:

template declaration

Example:

<template name="bar">
      <!-- any tag from below -->
</template>

Context:

As for the tag view, this one need to be at the root level. Otherwise, it will be interpreted differently.

Attributes:

text-input

Example:

<text-input value="{{tchat.msg}}" key="{{options.keyboard.submitmsg}}"/>

Context: None

Attributes:

progress-bar

Example:

<progress-bar value="{{player.xp_pct}}"/>

Context: None

Attributes:

group

Example:

<group></group>

Context: None

Attributes: None

button

Example:

<button gotoview="foo" action="bar" key="A"/>

Context: None

Attributes:

template inclusion

Example:

<template path="foobar" />

Context: None

Attributes:

repeat

Example:

<!-- template declaration -->
<template name="friend">
    {{name}} is {{status}}
</template>

<view name="friends">
    <!-- Repeat usage -->
    <repeat iter="{{player.friends}}" template-name="friend"/>
</view>

Context: None

Attributes: