Reference
/@let
@letComing Soon
Learn how to use @let
function
The @let
function allows you to create variables within content files.
Basic Usage
@let(<EXPRESSION>)
for example:
@let(snippet = await snippets.py.getUsers()) Python `Get Users` SDK snippet: {snippet}
Local context
```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 ) )
Built with
Show your support! Star us on GitHub ⭐️