# templatify **Repository Path**: mirrors_andyperlitch/templatify ## Basic Information - **Project Name**: templatify - **Description**: Middleware for browserify to load non-js files as pre-compiled handlebars (or underscore) templates. - **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-12-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # templatify Middleware for browserify to load non-js files as precompiled handlebars (or underscore) templates. [](http://travis-ci.org/mklabs/templatify) Most of the code base and featureset ot this plugin is based and inspired on [require-handlebars-plugin](https://github.com/SlexAxton/require-handlebars-plugin). ## Usage ```javascript var templatify = require('templatify'); var bundle = browserify() .use(templatify('./', { files: ['**/*.html'], helpers: ['**/*.js'] })) .bundle(); console.log(bundle); // write output to `templates.js` require('fs').writeFileSync('./templates.js', bundle); // Use underscore adapater instead of handlebars default one var bundle = browserify() .use(templatify('./', { adapter: templatify.adapters.underscore })) .bundle(); console.log(bundle); ``` Write a template ( path: `app/template/one.html` ): ```html