Riiskits / Riiskit-Child

A child theme for Riiskit.
MIT License
2 stars 1 forks source link

Find out if we should use a templating engine and/or JS app framework #12

Open sigurdsvela opened 8 years ago

sigurdsvela commented 8 years ago

As per now, we just use the tempting system from wordpress, and code pretty vanilla.

WordPress/PHP tempting engines

There are a lot of good tempting engines for PHP, and plugins that make them work for wordpress. This might be a good idea. It makes the code a lot more readable, and enforces a good separation of logic and templates. i.e., there should never be DB calls in templates, and nothing outside a template should ever display anything. The discussion here is wether or not riiskit should enforce the usage of a templateing engine

JS App Framework

Should we make riiskit include a JS App framework? Will themes be developed faster/better with one?

This is a discussion for now. So chime in!

halvardos commented 8 years ago

I personally LOVE good logic and display separation. IMO we should consider making this a modular part of riiskit as soon as possible, maybe as a new child version of the theme for more 'standard' websites.

A js framework with good integration into the new WP REST api could potentially create a lot of buzz for this theme if we release it together with, or close to, the release of REST-API as part of WP core.

sigurdsvela commented 8 years ago

You and me both. We should find out how to enforce said separation. I vote in favour of MVC. I think a PHP templateing engine should be included in riiskit(parent), and be used in child, i think all of themes should(at least have the choice to) use a PHP tempting engine if we introduce one.

Agreed, a JS App Framework + WP REST = Bloody EPICNESS

sigurdsvela commented 8 years ago

We need to discuss which tempting engine we should use, and which App framework.

I have close to no experience with JS app frameworks, so I have no suggestions. I have tried PHP Twig, which is very good. And there exists a plugin to integrate it with WordPress.

Where to people stand on this?