Skip to content

Instantly share code, notes, and snippets.

@bkardell
Last active December 23, 2015 13:39
Show Gist options
  • Select an option

  • Save bkardell/6643826 to your computer and use it in GitHub Desktop.

Select an option

Save bkardell/6643826 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>simple</title>
<script src="https://rawgithub.com/x-tag/core/master/dist/x-tag-core.js"></script>
<script>
xtag.register("x-test", {
lifecycle: {
/* "Whenever a tag is recognized and parsed on load"... This won't fire in this test. */
created: function () {
this.innerHTML = "HELLO WORLD - CREATED."
}
/*, ...works fine for stuff during parse...
inserted: function () {
this.innerHTML = "HELLO WORLD - INSERTED."
}*/
},
events: {},
accessors: {}
});
</script>
</head>
<body>
<x-test>something</x-test>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment