Created
February 14, 2020 20:49
-
-
Save hcayless/34e13eecc7686aeafd1f37592730ec5e to your computer and use it in GitHub Desktop.
Minimal CETEIcean/Vue example
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
<template> | |
<div> | |
TEI would go here... | |
<div id="tei" v-html="teiHTML" /> | |
</div> | |
</template> | |
<script> | |
import CETEI from '../ceteicean/CETEI.js'; | |
export default { | |
name: 'TEITest', | |
data() { | |
return { | |
teiHTML: null | |
} | |
}, | |
created() { | |
var CETEIcean = new CETEI() | |
var self = this; | |
CETEIcean.getHTML5("https://raw.githubusercontent.com/TEIC/CETEIcean/master/test/testTEI.xml", function(data) { | |
console.log(data) | |
self.teiHTML = data.outerHTML | |
}) | |
} | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment