init vue app (frontend)
This commit is contained in:
@@ -7,10 +7,12 @@
|
||||
{# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
|
||||
{% block stylesheets %}
|
||||
{{ encore_entry_link_tags('app') }}
|
||||
{{ encore_entry_link_tags('vue') }}
|
||||
{% endblock %}
|
||||
|
||||
{% block javascripts %}
|
||||
{{ encore_entry_script_tags('app') }}
|
||||
{{ encore_entry_script_tags('vue') }}
|
||||
{% endblock %}
|
||||
</head>
|
||||
<body>
|
||||
|
13
app/templates/vue/index.html.twig
Normal file
13
app/templates/vue/index.html.twig
Normal file
@@ -0,0 +1,13 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}{{'My VueJS template'}}{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="container">
|
||||
<h1>{{'My VueJS template'}}</h1>
|
||||
|
||||
<div id="app" data-app="{{ data | json_encode() | escape('html_attr') }}"></div>
|
||||
|
||||
|
||||
</div>{{ dump() }}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user