1.0.6 • Published 6 years ago

cogear-plugin-pages-json v1.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Cogear.JS plugin Pages.JSON

Simply generates pages.json file in the source folder with all parsed pages data structure.

May be usefull for implementing in site javascript to creating menus of for async data load with Vue/React.

Installation

Go to the site folder and install plugin with command:

yarn add cogear-plugin-pages-json
# or 
npm install cogear-plugin-pages-json

Plugin will loads up automatically.

Usage

Add your own usage implementation on app.js (provided by default) or any other script you'll provide.

Listing app.js:

import pages from './pages.json'

new Vue({
	el: "#menu"
	data(){
		return {
			pages
		}
	}
})
1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago