-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the solution you'd like
Being able to serve template through http
Example usage
With deno
deno run jsr:@tmpl/serve index.html.tsFor web pages
import { html } from '@tmpl/core'
export default html`
<!DOCTYPE html>
<html>
</html>
`
For apis
```typescript
import { json } from '@tmpl/core'
export default json`
{
"hello": "world",
}
`
For events
```typescript
import { json } from '@tmpl/core'
export default async function * () {
for (let i = 0; i < Infinity; ++i) {
yield json`
{ "i": ${i} }
`.noindent()
}
}
```.Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request