You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ It's the perfect choice, if you want to use the same templates in different lang
11
11
Laravel Handlebars is distributed as a composer package. So you first have to add the package to your `composer.json` file:
12
12
13
13
```
14
-
"proai/laravel-handlebars": "~1.3"
14
+
"proai/laravel-handlebars": "~1.4"
15
15
```
16
16
17
17
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
93
93
94
94
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.
95
95
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
+
96
102
## Support
97
103
98
104
Bugs and feature requests are tracked on [GitHub](https://github.com/proai/laravel-handlebars/issues).
0 commit comments