Template Reference
VSL ยท Vasco Specification Language
Version 1.1
Active
Check your template
Find likely variable, type, and field-name mistakes before generating a document.
Sign in
to check a template.
Generic context
These variables are available for every templatable DSL.
| Variable | Contents |
|---|---|
root | The parsed entry object (TestSuite). |
elements | All named elements across grammar types. |
by_type | Named elements grouped by their exact grammar type. |
by_id | Lookup from an element name to its element. |
schema_version | Template-context schema version, currently 1.0. |
Uniform element aliases
Every named element keeps its raw fields and gains these aliases.
| Alias | Meaning |
|---|---|
id | The raw name value. |
title | The configured friendly title, falling back to name. |
kind | The exact Langium AST type. |
Template Profile aliases
Friendly names are resolved at render time and do not alter the grammar inventory.
This DSL does not define additional friendly aliases.
Named types
These exact names are valid keys in by_type.
Matches exact grammar type and field names.
TestCase Link
| Field | Shape |
|---|---|
expectation |
contained โ Expectation |
name |
string |
steps |
contained โ TestStep list optional |
{% for item in by_type["TestCase"] %}
{{ item.id }} โ {{ item.title }}
{% endfor %}