https://github.com/jcblw/handlebars-resolve
https://github.com/jcblw/handlebars-resolve
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jcblw/handlebars-resolve
- Owner: jcblw
- Created: 2015-05-30T02:12:58.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-08-04T06:24:55.000Z (almost 6 years ago)
- Last Synced: 2025-02-08T04:26:03.678Z (5 months ago)
- Language: JavaScript
- Size: 625 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Handlebars Resolve
[](https://greenkeeper.io/)
[](https://travis-ci.org/jcblw/handlebars-resolve)
Sometimes you wanna make super cool [Handlebars](http://handlebarsjs.com) helpers that reference external js files to build advanced templates. This is super easy on server side javascript code all you have to do is make a reference, and it works. On a client that is not so simple. If your using something like [browserify](http://browserify.org/), your bundle of javascript files will not contain the files referanced inside of your templates. This module intends to help that out.
Handlebars Resolve will parse and find all paths inside of a template file and create a file that will referance the file as well as allow access to that file inside of your helpers.
## Usage
make sure its installed.
```javascript
var hbsResolve = require('handlebars-resolve');hbsResolve({
files: './templates/*.hbs',
helper: 'view',
outputFile: './resolves.js',
basePath: './views/'
});
```> This is a fairly new repo, if you find a bug report it.