This document explains what are differences between static pages & dynamic pages
Static page
Static page is created bybaseCamp
in foldersrc/pages
.
It's used to test static components without API.
When you create Vue files inside foldersrc/pages
, Nuxt.js automatically generates thevue-router
configuration for you.
That means you never have to write a router config again.
Nuxt.js also gives you automatic code-splitting for all your routes.
For more detail about creating FO components, please refer this doc: How to make FO componentsDynamic page
Dynamic page is created byBuilder
The main concept of dynamic page is creating a page inBuilder
with FO components. After that, it stores data as json file onbackendCore
. When you access to dynamic page, it will get data frombackendCore
to render.
BaseCamp will call API/svc/service/page
to get data of dynamic page
It containssiteId
,title
,pageRoute
and especiallyinstance
Instance is main object, it containsinstances
- array of children components which are rendered
Ex: page Home has 3 components: Header, Slider and Footer soinstances
has 3 elements
Inside any instance, it may contain other children, so baseCamp use recursion to render all of them_core/components/instanceRenderer.vue
After that, every component was rendered byinstanceRenderer
will start a lifecycle as normal Vue component