Skip to content

[FEATURE] @tmpl/serve #9

@90dy

Description

@90dy

Describe the solution you'd like

Being able to serve template through http

Example usage

With deno

deno run jsr:@tmpl/serve index.html.ts

For 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

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions