Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 908 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 908 Bytes

finch

A super fast and efficient template rendering engine for node.js, inspired by Handlebars.

Usage

Finch is very simple to use: Register a template, then compile it with your own data. Every registered template gets pre-compiled for performance purposes.

const Finch = require("finch");

Finch.addTemplate("hello_world", "Hello {{name}}, welcome to the world of {{world}}");

console.log(Finch.compile("hello_world", {name: "Google", world: "Finch"})); 
// Hello Google, welcome to the world of Finch

Check out the official book for complete examples, guides and features!

Outlined Features

  • All handlebar features, plus...
  • ~x3 times faster than handlebars.
  • Simple, easy and readable templates.
  • Bootstrap JS right inside your templates.
  • Call JS functions inside templates.
  • Use the built-in helpers (each, if) or make your own.