hello world with viewJS
This commit is contained in:
18
app/templates/default/app.html.twig
Normal file
18
app/templates/default/app.html.twig
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}{{'My VueJS template'}}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="container">
|
||||
<h1>{{'My VueJS template'}}</h1>
|
||||
|
||||
block vue
|
||||
{% verbatim %}
|
||||
<div id="app" data-name="{{ app.user.username }}"></div>
|
||||
{% endverbatim %}
|
||||
end
|
||||
|
||||
{{ encore_entry_script_tags('app') }}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user