https://github.com/lionello/go-text-template
Basic Go text/template parser and renderer
https://github.com/lionello/go-text-template
helm node node-js nodejs template-engine typescript
Last synced: 3 months ago
JSON representation
Basic Go text/template parser and renderer
- Host: GitHub
- URL: https://github.com/lionello/go-text-template
- Owner: lionello
- License: mit
- Created: 2022-11-12T17:14:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-24T01:38:03.000Z (12 months ago)
- Last Synced: 2025-02-09T03:34:59.799Z (4 months ago)
- Topics: helm, node, node-js, nodejs, template-engine, typescript
- Language: TypeScript
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-text-template
[](https://github.com/defang-io/go-text-template/actions/workflows/node.js.yml)
Basic Go text/template parser and renderer. No dependencies.
## Install
Install the package from the [NPM registry](https://www.npmjs.com/package/go-text-template):
```sh
npm install go-text-template
```## Usage
```js
import { Template } from 'go-text-template'; // or require
const template = new Template("optional name");
const output = template.execute('Hello {{.name}}', { name: 'World' });
console.log(output); // Hello World
```