# tripartite

> A simple and fast javascript templating library

Latest version **1.1.7** (published 2026-03-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install tripartite
pnpm add tripartite
yarn add tripartite
bun add tripartite
```

## Health

**Score 45/100 (D)** — status: active.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 1.1.7 |
| Published | 2026-03-24 |
| First published | 2016-04-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 24.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dan Kolz |
| Maintainers | dankolz |
| Keywords | template, micro |

## Links

- npm: https://www.npmjs.com/package/tripartite
- Repository: https://github.com/EmergentIdeas/tripartite
- Homepage: https://github.com/EmergentIdeas/tripartite#readme
- Issues: https://github.com/EmergentIdeas/tripartite/issues
- npm.io page: https://npm.io/package/tripartite

## Recent versions

- 1.1.7 (latest) — 2026-03-24
- 1.1.6 — 2026-02-03
- 1.1.5 — 2025-10-30
- 1.1.4 — 2024-07-22
- 1.1.3 — 2024-07-17
- 1.1.2 — 2023-11-13
- 1.1.1 — 2023-10-25
- 1.1.0 — 2023-09-05
- 1.0.16 — 2023-07-11
- 1.0.15 — 2022-07-15
- 1.0.14 — 2018-08-21
- 1.0.13 — 2018-05-17
- 1.0.12 — 2018-04-23
- 1.0.11 — 2018-02-09
- 1.0.10 — 2018-01-24
- … 10 more at https://npm.io/package/tripartite/versions

## README

# Tripartite

A micro templating tool.

## Install

```bash
npm install tripartite
```

## Usage 

```js



```


Include a template directly in a client side script by adding to the package.json:
```json
	"browserify": {
		"transform": [
			"tripartite/browserify-transform"
		]
	}
```

or in a webpack config like:

```js
let pagesConf = {
    entry: './source.js',
    output: {
        filename: 'output.js',
        path: path.resolve(__dirname, 'public/js'),
    },
    module: {
        rules: [
            { test: /\.tmpl$/, use: 'tripartite/webpack-loader.mjs' }
            , { test: /\.tri$/, use: 'tripartite/webpack-loader.mjs' }
            , { test: /\.txt$/i, use: 'raw-loader' }
        ],
    }
}
```

This adds the template to the global tripartite instance and returns the parsed and
runnable template function.

To load and use a template directly, you can run:

```js
let template = require('./template.tri')
```

---
_Source: https://npm.io/package/tripartite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
