StyleBooks grammar

You can design your own StyleBooks, import them to NetScaler MAS, and then use them to create configurations either by using NetScaler MAS GUI or by using APIs. To be able to create your own StyleBooks, you must first understand the grammar and syntax of the different constructs and attributes you can use.

This document describes the different constructs and references you can use while creating StyleBooks.

Click a section, construct, or reference name in the table below to view the details.

   
Header Import StyleBooks
Parameters Parameters-default-sources construct
Substitutions Components
Optional properties Helper components
Properties default sources Nested components
Condition construct Repeat construct
Repeat-condition construct Outputs
Nested repeats Parent reference
Parameter reference Substitutions reference
Components reference Operations
Variable reference Alarms
Analytics Built-in functions
Expressions Dependency detection
In-place interpolations  

Note

While defining repeat-item, repeat-index, or arguments to substitution functions, do not use the following reserved words to name a user-defined variable, $<var-name>

  • stylebook, parameters, substitutions, components, properties, outputs, parent, self, operations, analytics, alarms
  • repeat-item, repeat-item-0, repeat-item-1, repeat-item-2
  • repeat-index, repeat-index-0, repeat-index-1, repeat-index-2
  • default
  • roles, role, targets, target
  • context, parent-context, parent_context

For information and examples about how to design your own StyleBooks, see How to Create Your Own StyleBooks.

StyleBooks grammar

In this article