The @let function allows you to create variables within content files.
Basic Usage
for example:
Local context
Built with
Show your support! Star us on GitHub ⭐️
The @let function allows you to create variables within content files.
for example:
Show your support! Star us on GitHub ⭐️
@let(<EXPRESSION>)
@let(snippet = await snippets.py.getUsers()) Python `Get Users` SDK snippet: {snippet}
```ts [=mySnippet] export function build() { return "xyd build" } ``` @let( .mySnippet.descHead="TIP" .mySnippet.desc = ( Install CLI to **run** and **build** your [docs](https://xyd.dev). * Define reusable content blocks for your documentation * Use variables to avoid repetition across multiple pages * Create dynamic content that can be referenced elsewhere ) )