Commit 0a1b325
authored
fix(docs): update SSR boot file template variable syntax for app-vite v2 (quasarframework#18247)
In @quasar/app-vite v2, the render-template is compiled with
{ variable: 'ssrContext' }, which scopes all interpolations under
the ssrContext object. The previously documented {{ someProp }} syntax
no longer works; the correct syntax is {{ ssrContext.someProp }}.
Updated the example in the Boot Files section of the Configuring SSR
page to reflect this change, and added a tip callout to help users
upgrading from v1.1 parent aff2edb commit 0a1b325
1 file changed
Lines changed: 7 additions & 3 deletions
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
239 | | - | |
| 239 | + | |
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
244 | 248 | | |
245 | 249 | | |
246 | | - | |
| 250 | + | |
247 | 251 | | |
0 commit comments