样书语法
您可以设计自己的样书,将其导入 NetScaler Application Delivery Management (ADM),然后使用 NetScaler ADM GUI 或使用 API 使用它们来创建配置。为了能够创建您自己的样书,必须先了解您可以使用的不同构造和属性的语法和句法。
本文档介绍了创建样书时可以使用的不同构造和引用。
单击下表中的部分、构造或引用名称可查看详细信息。
| | | |—|—| | [Header](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/header-section.html) | [导入样书](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/import-stylebooks-section.html) | | [Parameters](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/parameters-section.html) | [参数-默认源代码构造](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/parameters-default-sources-construct.html) | | [Substitutions](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/substitutions.html) | [Components](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/components.html) | | [可选属性](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/optional-properties.html) | [帮助程序组件](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/helper-components.html) | | [属性默认来源](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/properties-default-sources.html) | [嵌套组件](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/nested-components.html) | | [条件构造](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/condition-construct.html) | [重复构造](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/repeat-construct.html) | | [重复条件构造](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/repeat-condition-construct.html) | [Outputs](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/outputs.html) | | [嵌套重复](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/nested-repeats.html) | [父级引用](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/parent-reference.html) | | [参数引用](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/parameter-reference.html) | [替换引用](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/substitutions-reference.html) | | [组件引用](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/components-reference.html) | [Operations](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/operations.html) | | [变量引用](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/variable-reference.html) | [Alarms](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/alarms.html) | | [Analytics](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/analytics.html) | [内置函数](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/built-in-functions.html) | | [Expressions](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/expressions.html) | [依赖性检测](/zh-cn/netscaler-application-delivery-management-software/current-release/stylebooks/stylebooks-grammar/dependency-detection.html) | | 就地插值 |
注意
在为替换函数定义重复项、重复索引或参数时,不要使用以下保留字来命名用户定义的变量 $
<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
有关如何设计您自己的样书的信息和示例,请参阅如何创建您自己的样书。