Skip to main content
Glama
by microsoft
jinja.test.ts648 B
import { jinjaRender } from "./jinja" import { describe, test, beforeEach } from "node:test" import assert from "node:assert/strict" describe("jinjaRender", () => { test("should correctly render template with values", () => { // Given a template and values const template = "Hello, {{ name }}! Today is {{ day }}." const values = { name: "Alice", day: "Monday" } // When rendering the template const result = jinjaRender(template, values) // Then the result should be as expected const expected = "Hello, Alice! Today is Monday." assert.strictEqual(result, expected) }) })

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/microsoft/genaiscript'

If you have feedback or need assistance with the MCP directory API, please join our Discord server