DEV Community

Discussion on: Cogear.JS — modern static websites generator

Collapse
 
crazy4groovy profile image
crazy4groovy

I like the ideas here! Plugins seem very powerful.

I read through the docs but I don't see anything that mentions how to start with a framework like React. Only static pages for various template engines, under the src/pages folder.

Two topics I'd be interested to see covered in the docs are:

Collapse
 
dbelyaeff profile image
Dmitriy Belyaev

Thanks.

Please, take a look at the following blog post about Vue.JS plugin:
cogearjs.org/blog/2018/09/vue-plugin/

How to build dynamic content?

Use VueRouter for routing and axios for fetching data from external API.

Using Vue.JS plugin example it's easy to write similar one for React.JS.

Plugin just extends Webpack config

Look at plugin main file (only 31 lines w/brackets):
github.com/codemotion/cogear-plugi...

Collapse
 
crazy4groovy profile image
crazy4groovy

Cool, thanks!

Just to be clear, there is no support or plugins for importing content from a 3rd party service like Contentful, correct?

Thread Thread
 
dbelyaeff profile image
Dmitriy Belyaev

You're welcome!

Right now there is a Vue-plugin.

You can import axios in the entry point script and use any API that you'd want.

With VueRouter it gives great possibilities.

Thread Thread
 
dbelyaeff profile image
Dmitriy Belyaev

I'm planning to release a video tutorial about plugins today.

Advise you to subscribe to our YouTube channel not to miss newer tutorials.

I think it's a good topic about Contentful. Will try to make a video on that.

I've also planned to write a plugin for importing from Wordpress.