Skip to content

Instantly share code, notes, and snippets.

@freearhey
Created August 31, 2016 05:45
Show Gist options
  • Select an option

  • Save freearhey/840a2445d96a9b10c375492c9cc56edb to your computer and use it in GitHub Desktop.

Select an option

Save freearhey/840a2445d96a9b10c375492c9cc56edb to your computer and use it in GitHub Desktop.

Revisions

  1. freearhey created this gist Aug 31, 2016.
    3 changes: 3 additions & 0 deletions collection.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet href="template.xsl" type="text/xsl" ?>
    <collection />
    12 changes: 12 additions & 0 deletions main.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    Vue.component('hello', {
    template: '#hello-template',
    data: function() {
    return {
    greeting: 'Hola!'
    }
    }
    })

    new Vue({
    el: 'body'
    })
    19 changes: 19 additions & 0 deletions template.xsl
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <html>
    <body>

    <hello></hello>

    <template id="hello-template">
    <h1>{{ greeting }}</h1>
    </template>

    <script src="http://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.min.js"></script>
    <script src="main.js"></script>

    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>