-
-
Save mikestecker/629a2fb8e074cac19d8fbd527fc84984 to your computer and use it in GitHub Desktop.
Vue.js Craft template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% includeJsFile('https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.js') %} | |
{% set script %} | |
Vue.config.debug = true; | |
Vue.config.delimiters = ['${', '}']; | |
new Vue({ | |
el: '#content', | |
data: { | |
message: 'Hello Vue.js!' | |
} | |
}); | |
{% endset %} | |
{% includeJs script %} | |
{% block content %} | |
<div id="content" role="main"> | |
${ message } | |
</div> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment