### Integrating C# and External API Data with JavaScript
Source: https://kooboo.com/zh/docs/index
This example showcases how JavaScript can interact with methods from other languages like C# and fetch data from remote APIs (e.g., Shopify) using server-side execution. It highlights Kooboo's interoperability and OpenAPI connection features.
```html
```
--------------------------------
### Server-Side JavaScript for Content Retrieval
Source: https://kooboo.com/zh/docs/index
This snippet demonstrates how to retrieve and display content, such as a blog list, directly from a content repository using server-side JavaScript. It leverages the `env="server"` attribute to execute JavaScript on the server and `k-for` and `k-content` directives for rendering.
```html
```
--------------------------------
### Backend JavaScript Execution for Data Embedding
Source: https://kooboo.com/zh/docs/index
This code demonstrates how to define and embed data directly from the backend into the frontend using server-side JavaScript. The `env="server"` attribute ensures the script runs on the server, making the `item` variable available for frontend rendering with `k-content`.
```html
title
```
--------------------------------
### Rendered Output of Backend JavaScript Execution
Source: https://kooboo.com/zh/docs/index
This snippet shows the resulting HTML output after the server-side JavaScript, which defined the `item` variable, has been executed. The `k-content` directive has replaced the placeholder with the value from the server-side variable.
```html
Hello World From Back End
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.