4 ms·
That was a really dumb idea. Kill off thousand's of themes and anger millions of developers and end users, just for the sake of having cleaner, "purer" code?
by rprasad 14y ago
That was a really dumb idea. Kill off thousand's of themes and anger millions of developers and end users, just for the sake of having cleaner, "purer" code?
Better idea: fork Wordpress into something called TemplatePress, implement a templating engine which does not allow for arbitrary php code in themes, and see how well people like it. Chances are it will be dead within a year-- people choose Wordpress because it is easy to modify it to their own needs. They don't care about maintainability or cleanliness or portability.
- renownedmedia 14y agoFrom the article: Existing Themes The biggest asset of WordPress is the large number of themes and plugins available for it. Of course, by switching to a templating language such as Mustache, the existing repository of PHP based themes are no longer valid. To take care of this, Automattic (the company behind WordPress) could bundle a plugin with WordPress 4.x that allows loading of old templates, which would be disabled by default. Keeping that code out of core would help keep the overall project more manageable and secure.
- rprasad 14y agoYes, I read the article. Pushing basic functionality to a plugin is not a solution, as themes would still need to be rewritten to use the plugin. Putting basic functionality in a plugin works with RoR because developers are used to it, but it is guaranteed to break if attempted with WordPress.
- ericclemmons 14y agoHaving done it myself, it's actually easier to implement Twig within WordPress and expose the built-in functions. Having a clean theme is doable without ruining the work of the community.