au.id.jericho.lib.html
Class MasonTagTypes
java.lang.Object
au.id.jericho.lib.html.MasonTagTypes
public final class MasonTagTypes
extends java.lang.Object
static boolean | defines(TagType tagType) - Indicates whether the specified tag type is defined in this class.
|
static boolean | isParsedByMason(TagType tagType) - Indicates whether the specified tag type is recognised by a Mason parser.
|
static void | register() - Registers all of the tag types defined in this class at once.
|
MASON_COMPONENT_CALL
public static final StartTagType MASON_COMPONENT_CALL
MASON_COMPONENT_CALLED_WITH_CONTENT
public static final StartTagType MASON_COMPONENT_CALLED_WITH_CONTENT
The tag type given to the start tag of a
Mason component called with content
(
<&|
...
&>
...
</&>
).
<&| /sql/select, query => 'SELECT name, age FROM User' &>
<tr><td>%name</td><td>%age</td></tr>
</&>
MASON_COMPONENT_CALLED_WITH_CONTENT_END
public static final EndTagType MASON_COMPONENT_CALLED_WITH_CONTENT_END
MASON_NAMED_BLOCK
public static final StartTagType MASON_NAMED_BLOCK
The tag type given to the start tag of a
Mason named block
(
<%name
...
>
...
</%name>
).
A tag of this type
must not have a '
%
' character before its
closing delimiter, otherwise it is most likely a
common server tag.
For the start tag to be recognised, a
corresponding end tag of the
correct type must exist somewhere in the source document following the start tag.
<%perl> print "hello world"; </%perl>
MASON_NAMED_BLOCK_END
public static final EndTagType MASON_NAMED_BLOCK_END
defines
public static boolean defines(TagType tagType)
Indicates whether the specified tag type is defined in this class.
true
if the specified tag type is defined in this class, otherwise false
.
isParsedByMason
public static boolean isParsedByMason(TagType tagType)
true
if the specified tag type is recognised by a Mason parser, otherwise false
.
register
public static void register()
Registers all of the tag types defined in this class at once.
The tag types must be registered before the parser will recognise them.