Wordpress Plugin - using backbone.js

I want to create a custom wordpress plugin. I want to use backbone.js. I used the framework for projects not related to php / wordpress. Can someone guide me on how to write a plugin to use the mvc client side architecture? Thanks!

+4
source share
2 answers

I just clicked WordpressSinglePage, the initial place to create single-page JavaScript applications on top of Backbone.js through Brunch (Backbone.js, CoffeeScript, EcoTemplates, jQuery --http: //brunch.io/) and Wordpress JSON api. This should lead you to the right path.

Updated: https://github.com/damassi/WordpressSinglePage-JavaScript

+2
source

I am convinced that since backbone.js is a client-side platform, most of the complexity will be in writing the actual plugin. Smashing Magazine has an excellent article, β€œThe Basics of WordPress: How to Create a WordPress Plugin, ” which should serve as a good starting point. Beyond that, I would look at the discussions on Backbone.js How to use it with PHP here on StackOverflow.

"If you do #PHP and need a RESTful API (for #BackboneJS, etc.), the # SlimPHP framework looks pretty smooth. It looks like #Sinatra for PHP." Derik Bailey

+1
source

Source: https://habr.com/ru/post/1390155/


All Articles