Get started with t7 CDN

ISC licensed

T7 is a lightweight, template-driven library for generating dynamic HTML content.

Tags:
  • dom
  • es2015
  • lightweight

Stable version

Copied!

How to start using t7 CDN


// Include T7 library from CDN
const T7 = require('t7/dist/t7.min.js');

// Initialize T7 with a template
const template = T7.compile(`
Hello, {{name}}!
Your age is {{age}}.
`);

// Prepare data for the template
const data = { name: 'John Doe', age: 30 };

// Render the template with data
const output = template.render(data);

// Log the result
console.log(output); // "Hello, John Doe! Your age is 30."
Copied!
Copied!
Copied!

All versions