Initial commit of WooNooW Docs
This commit is contained in:
26
contents/docs/features/shortcodes/index.mdx
Normal file
26
contents/docs/features/shortcodes/index.mdx
Normal file
@@ -0,0 +1,26 @@
|
||||
---
|
||||
title: Shortcodes
|
||||
description: Available shortcodes in WooNooW
|
||||
date: 2024-01-31
|
||||
---
|
||||
|
||||
## The Primary Shortcode
|
||||
|
||||
WooNooW operates as a Single Page Application (SPA). To render the entire store application, you only need one shortcode:
|
||||
|
||||
### `[woonoow_spa]`
|
||||
|
||||
This shortcode initializes the SPA router and renders the appropriate view based on the URL (Shop, Product, Cart, Checkout, Account).
|
||||
|
||||
**Usage:**
|
||||
Place this shortcode on your designated "Store" page.
|
||||
|
||||
```text
|
||||
[woonoow_spa]
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Legacy Shortcodes
|
||||
|
||||
*Note: Previous versions utilize individual shortcodes (`[woonoow_shop]`, etc.). These are now consolidated into the single SPA entry point for better performance and routing state management.*
|
||||
Reference in New Issue
Block a user