<attribute> define an attribute in a custom tag

name
attribute
xml namespace
http://moyaproject.com

Defines an attribute in a <tag>, <data-tag> or <widget>.

Example

<datatag name="module">
    <doc>Define a top level admin module</doc>
    <signature>
        <attribute name="slug" required="yes" />
        <attribute name="title" required="yes" />
        <attribute name="description" required="yes" />
        <attribute name="content" type="elementref" required="no" />
    </signature>
</datatag>
attributes
name purpose type required? default choices
choices Valid values for this attribute comma list No
default Default text No
empty Are empty values allowed? boolean No yes
metavar Metavar (identifier used in documentation) text No
missing Are missing values allowed? boolean No yes
name Name of the attribute text Yes
required Required boolean No yes
type Type of the attribute text No "expression" application
boolean
bytes
color
commalist
constant
dbexpression
dict
element
elementref
expression
function
httpstatus
index
integer
namespace
number
raw
reference
template
templates
text
timespan
version