Skip to content

Commit 54b7a4e

Browse files
Update README.md
1 parent 0654fa8 commit 54b7a4e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ It's the perfect choice, if you want to use the same templates in different lang
1111
Laravel Handlebars is distributed as a composer package. So you first have to add the package to your `composer.json` file:
1212

1313
```
14-
"proai/laravel-handlebars": "~1.3"
14+
"proai/laravel-handlebars": "~1.4"
1515
```
1616

1717
Then you have to run `composer update` to install the package. Once this is completed, you have to add the service provider to the providers array in `config/app.php`:
@@ -93,6 +93,12 @@ This package automatically adds the directory of the current template to the bas
9393

9494
For more information about the Handlebars syntax see the [Handlebars documentation](http://handlebarsjs.com). It does not matter that the examples are for JavaScript, because Handlebars templates are the same for JavaScript and PHP.
9595

96+
## Using it with Webpack
97+
98+
If you want to use this package client side with webpack, have a look at this article:
99+
100+
[Sharing templates between PHP and JavaScript in Laravel](https://medium.com/@greut/sharing-templates-between-php-and-javascript-in-laravel-a5e07b43be24)
101+
96102
## Support
97103

98104
Bugs and feature requests are tracked on [GitHub](https://github.com/proai/laravel-handlebars/issues).

0 commit comments

Comments
 (0)