Skip to content

Commit

Permalink
Merge branch 'ptbrowne-runtime'
Browse files Browse the repository at this point in the history
  • Loading branch information
emaphp committed Feb 19, 2016
2 parents c010d89 + 95afa67 commit fac8095
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ return compiled({name: "world"});
// File: helpers.js

// Get Handlebars instance
var Handlebars = require('handlebars-template-loader').Handlebars;
var Handlebars = require('handlebars-template-loader/runtime');

Handlebars.registerHelper('list', function(items, options) {
var out = "<ul>";
Expand Down Expand Up @@ -374,4 +374,4 @@ Translates to
<br>
###License

Released under the MIT license.
Released under the MIT license.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var Handlebars = require('handlebars');
var HbsRuntime = require('handlebars/runtime');
var HbsRuntime = require('./runtime');
var loaderUtils = require('loader-utils');
var path = require('path');

Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "handlebars-template-loader",
"version": "0.5.4",
"version": "0.5.5",
"description": "A Handlebars template loader for Webpack",
"main": "index.js",
"homepage": "https://github.com/emaphp/handlebars-template-loader",
Expand All @@ -15,6 +15,9 @@
"contributors": [
{
"name": "Jérôme Steunou (JSteunou)"
},
{
"name": "Patrick Browne (ptbrowne)"
}
],
"repository": {
Expand Down
1 change: 1 addition & 0 deletions runtime/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('handlebars/runtime');

0 comments on commit fac8095

Please sign in to comment.