-
-
Notifications
You must be signed in to change notification settings - Fork 355
/
Copy pathvue.html.twig
41 lines (34 loc) · 1.09 KB
/
vue.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{% extends 'ux_packages/package.html.twig' %}
{% block importmap %}
{{ importmap('app-vue') }}
{% endblock %}
{% block package_header %}
{% component PackageHeader with {
package: 'vue',
eyebrowText: 'Vue.js Component Rendering'
} %}
{% block title_header %}
Render Vue.js from <em>inside Twig</em>
{% endblock %}
{% block sub_content %}
Built a Vue.js component? Render it quickly & easily in Twig <em>and</em> pass in dynamic props.
{% endblock %}
{% endcomponent %}
{% endblock %}
{% block code_block_left %}
<twig:CodeBlock filename="assets/vue/controllers/PackageSearch.js" height="300px" />
{% endblock %}
{% block code_block_right %}
<twig:CodeBlock
filename="templates/ux_packages/vue.html.twig"
height="300px"
language="html"
targetTwigBlock="demo_content"
/>
{% endblock %}
{% block demo_title %}UX Vue.js{% endblock %}
{% block demo_content %}
<div {{ vue_component('PackageSearch', {packages: packagesData}) }}>
Loading...
</div>
{% endblock %}