Things are on track and is the perfect time to share cool stuff that is being cooked at Chevereto HQ.
There will be an extensive customization layer thanks to the introduction of plugins and a new template system, all integrated from scratch rather than fill in to the current G\ architecture. Quickty is pushing a new and improved architecture for G\ that I can't wait to release.
Plugins will work very similar to WordPress but in our own way with several layers of customization and all the core build from scratch for it. The plugin architecture rely in the following systems:
# Template hooks
Template hooks are about easy extend themes with hotpot where you can inject markup code into existing templates. These defined hotspots will be in crucial points of the theme, like before the tag, after a given button, after the footer, etc. The idea of template hooks is to allow easy addition of markup code like when you want to add an extra checkbox, an additional menu item, a form, etc.
Overrides makes possible to extend and/or to modify the base system by triggering the system to use custom defined files instead of defaults. This suits perfect for those that want to add new routes, modify or extend language strings, etc.
Controllers are now the structure that fulfill both route and API requests and with controller filters you will be able to modify the controller I/O anytime. This is perfect when you want effortless add data to the render, either to be used in templates or in the API since controllers do all that for you. Since controllers parameters and its return array can me modified, the customization at this level is outstanding.
Triggers allows to add sophisticated functionality to your system at specific instances. A trigger allows to do stuff after something happens, your custom actions can be executed at crucial points in any given process like after a user is inserted in the database or after a file gets uploaded. Things like add a sepia filter to all image uploads will be dead easy to add.
# Wapping up
This plugin architecture will make possible extensive customization and it will provide several paths or alternatives to solve any given need. The idea is that the programmer should choose the approach that makes more sense. I'm opening the paths, you choose.
For those that want to do extensive modifications, there will be a user folder where you will be able to put all your editing in the same place. By doing this you can find your overrides or hooks because it will be in that user folder rather than inside the theme folder.
# New template system
I'm dropping PHP based themes in favor of Twig based themes for more easy-to-read stuff. Twig is a template system that allows friendly editing without sacrificing performance, it is used by Drupal and it has been created by Fabien Potencier, the same guy that created Symfony.
This new template system has pushed several changes in how G\ handles templates and G\ 2.0 will get rid of the annoying get_var() functions and conditionals. Instead, the system will rely on the render output array provided by the controller so it will be easier than ever to create themes.
All templates will be in plain HTML and the folder structure also changes with a more clear and concise folder distribution.
# Betas coming!
Public beta should be released in December 2016. The idea is to follow a stepped development to avoid a tsunami of issues on launch. The very first beta will be all about core functionality then the other betas will add the missing stuff.
The idea is to ship 4 betas before the stable release but will see if that is possible or needed.
That's all for now, stay tuned for more updates.