Templates - mattbichay/test GitHub Wiki

RML Templates

TEMPLATE Element

The TEMPLATE element has two uses, to define a template and inject a template inline into an existing RML documents.

When defining a template, TEMPLATE element should be used in place of RML.

Attributes'br name = [wiki:documentation/Glossary#BasicTypes] [wiki:documentation/Glossary#CaseInformation]

  The name of the template. Must be unique. Is used by other RML documents to reference the template.

content = [wiki:documentation/Glossary#BasicTypes] [wiki:documentation/Glossary#CaseInformation]

  The id of the element that the content will be put into.

When injecting a template, all elements inside the TEMPLATE tag will be placed inside the templates content element.

Attributes'br src = [wiki:documentation/Glossary#BasicTypes] [wiki:documentation/Glossary#CaseInformation]

  The name of the template to inject

BODY Element

The BODY element has a template attribute that is a shorthand for injecting a template around the body tag.

Attributes'br template = [wiki:documentation/Glossary#BasicTypes] [wiki:documentation/Glossary#CaseInformation]

  The name of the template to use. All child elements under the ''BODY'' element will be loaded into the template.
⚠️ **GitHub.com Fallback** ⚠️