-
Notifications
You must be signed in to change notification settings - Fork 126
RML: Documents
All Rocket documents begin with the RML element. The element should contain two children, HEAD and BODY.
The HEAD element contains information about the current document, such as its title, style and template information is references. No information in the header is rendered.
The TITLE element contains the title of the document. This is often used for the specifying the contents of the title bar of a game window.
The LINK element is used to specify additional resources the document requires.
Attributes
type = cdata (CI)
Type of link, which should be one of:
- text/rcss - Rocket Style Sheet Specification
- text/template - Rocket Template
- text/script - Angel script
href = cdata (CS)
Specifies the source URI, relative to the document being parsed.
The body of a document contains the document's content. All elements within the body tag is laid out and rendered by Rocket based on the active style sheets.