diff --git a/README.md b/README.md index c70ed7b..e50205d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # VueSpaNONODE -This is a single-page application that uses Vue and Vue Router. It uses ES6 imports to render components and templates. No Node is required. Just git clone and serve statically. +This is a single-page application that uses Vue 3 and Vue Router. It uses ES6 imports to render components and templates. No Node is required. Just git clone and serve statically. You can also select "Use this Template" in order to create a new single-page application that you can build upon. You can write code in any environment that has a static web-server. There are no dependencies. diff --git a/components/about.js b/components/about.js index 0e6a711..39cb46e 100644 --- a/components/about.js +++ b/components/about.js @@ -1,8 +1,6 @@ -import { AboutTemplate } from "../templates/about-template.js"; - - -const About = { - template: AboutTemplate, -} - -export { About } \ No newline at end of file +export default { + setup() {}, + template: `

This is About

` + // Can also target an in-DOM template: + // template: '#my-template-element' +} \ No newline at end of file diff --git a/components/home.js b/components/home.js new file mode 100644 index 0000000..128ab14 --- /dev/null +++ b/components/home.js @@ -0,0 +1,6 @@ +export default { + template: ` +

This is Home

` + // Can also target an in-DOM template: + // template: '#my-template-element' +} \ No newline at end of file diff --git a/index.html b/index.html index 91359eb..156dd17 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - Vue SPA + Vue SPA No Node