diff --git a/examples/typescript/.gitignore b/examples/typescript/.gitignore new file mode 100644 index 000000000..887d6b9fa --- /dev/null +++ b/examples/typescript/.gitignore @@ -0,0 +1 @@ +assets/js/*.js.map diff --git a/examples/typescript/README.md b/examples/typescript/README.md index 59a7a7037..41f467ef9 100644 --- a/examples/typescript/README.md +++ b/examples/typescript/README.md @@ -4,6 +4,8 @@ This demonstrates how to bundle TypeScript code, and use it in a templ project. The TypeScript code is bundled using `esbuild`, with templ used to serve HTML. +The `importmap` used by the browser to resolve dependencies is generated using [jspm-cli](https://jspm.org/docs/jspm-cli/stable/). + The code demonstrates application of `onclick` event handlers, and how to pass data from Go to TypeScript. This demo passes data from server-side Go code to TypeScript code by placing the data in ` +