Skip to content

Commit 4d9f059

Browse files
authored
Add twig vue js tip
1 parent 7551c92 commit 4d9f059

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

frontend/encore/vuejs.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,14 @@ you can import them with ``require()`` function:
155155
}
156156
}
157157
158+
Embeded with Twig
159+
-----------------
160+
161+
You can of course, inside a Twig template rendered
162+
from a controller, instantiate a VueJS app.
163+
Tip: you may in this case leverage the delimiters options
164+
https://vuejs.org/v2/api/#delimiters to not overlap with Twig ones.
165+
158166
.. _`Vue.js`: https://vuejs.org/
159167
.. _`vue-loader options`: https://vue-loader.vuejs.org/options.html
160168
.. _`Encore's index.js file`: https://github.com/symfony/webpack-encore/blob/master/index.js

0 commit comments

Comments
 (0)