Skip to main content

r:var

<r:var />

A tag for a variable. A variable is a place or tag that can hold different values at different times. 

It is a container for a value.

Attribute Options

name="something_to_call_it" - String, required. This attribute is the name of the variable.

Example:

<r:var name="my_variable_name" />

NOTE: Variable names should use underscores or camelCase. Do not use dashes as CleanSlate can interpret these as "minus" logic.

This tag is closely related to r:set_var.

See an example of r:var in Brand Pattern's main navigation file.

Last updated on January 2, 2020.

We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:

  • A brief description of the issue
  • A link to the page where you saw the issue
  • Screenshots that illustrate the problem - How do I take a screenshot?

Kindly email CleanSlate@mail.wvu.edu for help or use the form on the request help page.