1# Pug HTML Template Renderer
2This function is equivalent to [`pug.render`](https://pugjs.org/api/reference.html#pugrendersource-options-callback) - it takes a Pug template string and renders it to an HTML string. `import(npm:pug)` doesn't work in Val.Town due to Pug's usage of `new Function`, which is forbidden for security reasons, so this function uses Val.Town's `eval` API instead.
3
4## Example
9
10
11It would be awesome if it knew how to use other APIs and make `fetch` calls to them, but it has been [failing at that](https://chat.openai.com/share/428183eb-8e6d-4008-b295-f3b0ef2bedd2).
12
13## Limitations
19## Future directions
20
21Once we have more robust APIs to search for existing vals, this plugin could be WAY more valuable! In theory GPT4 could first search for vals to do a certain task and then if it finds one it could then write code based on that val. In practice however, that might require too many steps for poor GPT. We might need to use some sort of agent or langchain thing if we wanted that sort of behavior.
22
23Adding authentication could also enable it to make requests using your secrets and private vals and create new vals for you. However I am dubious that this would actually be practically useful.
1This val is simple, and just a way to test the express API.
1Migrated from folder: Archive/demo/myExpressApi
1Migrated from folder: test/myApi
1列表接口
2
3Migrated from folder: Gift/myApi
1Migrated from folder: External_APIs/Matrix/serverlessMatrixEchoBot
1Migrated from folder: Archive/myApi
11#glif #glifs
12
13Migrated from folder: Glif_API/glifJson