Skip to content

Instantly share code, notes, and snippets.

@hcayless
Created February 14, 2020 20:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hcayless/34e13eecc7686aeafd1f37592730ec5e to your computer and use it in GitHub Desktop.
Save hcayless/34e13eecc7686aeafd1f37592730ec5e to your computer and use it in GitHub Desktop.
Minimal CETEIcean/Vue example
<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