DefangLabs / go-text-template

Basic Go text/template parser and renderer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-text-template

Node.js CI npm

Basic Go text/template parser and renderer. No dependencies.

Install

Install the package from the NPM registry:

npm install go-text-template

Usage

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

About

Basic Go text/template parser and renderer

License:MIT License


Languages

Language:TypeScript 98.0%Language:Nix 2.0%