vaderjs 1.3.3-alpha-102 → 1.3.3-alpha-104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -123,6 +123,25 @@ export default function(req, res){
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
```
|
|
126
|
+
|
|
127
|
+
### ServerSide Site Generation (SSG)
|
|
128
|
+
|
|
129
|
+
Vader compiles all code to a static index.html page so your visitors will never have to wait for the page to load, it then rehydrates the page reapplying functionality!
|
|
130
|
+
|
|
131
|
+
We can define some metadata to be used at compile
|
|
132
|
+
|
|
133
|
+
```jsx
|
|
134
|
+
|
|
135
|
+
export const $metadata = {
|
|
136
|
+
title: "Malik Whitten - Home",
|
|
137
|
+
styles:['/public/css/styles.css'],
|
|
138
|
+
description: "Malik Whitten's personal website",
|
|
139
|
+
icon: "https://avatars.githubusercontent.com/u/123524260?s=200&v=4",
|
|
140
|
+
tags:[`cutom tags to place in head`]
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
```
|
|
144
|
+
Vader will take the metadata and place it inside of the compiled html file.
|
|
126
145
|
|
|
127
146
|
### Styling
|
|
128
147
|
|
package/package.json
CHANGED