# ktbr **Repository Path**: mirrors_andyperlitch/ktbr ## Basic Information - **Project Name**: ktbr - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-11-21 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README knights-templar-br ========== inline ye compiled templates with browserify and the [knights-templar](https://github.com/andyperlitch/knights-templar) module. [](https://travis-ci.org/andyperlitch/ktbr) ##usage ###api // template.html
{{name}} - age {{age}} // file1.js var kt = require('knights-templar'); var template = kt.make(__dirname+'template.html', 'hbs'); var markup = template({ name: 'andy', age: 24 }); console.log(markup); // build.js var browserify = require('browserify'); var fs = require('fs'); var ktb = require('knights-templar-br'); var bundle = browserify('./file1.js') .transform(ktb) .bundle() .pipe(fs.createWriteStream('./bundle.js')); ###cli npm install -g ktbr browserify -t ktbr test/file1.js > bundle.js Keep in mind that for Handlebars, the bundle will only work if the Handlebars-runtime (or full Handlebars library) is included on the page. Both are available at the [Handlebars website](http://handlebarsjs.com/). So, using the above as an example, your html should look something like this: