[wp-trac] [WordPress Trac] #31974: Separation of Views and static data, such as mime-type arrays from logic code
WordPress Trac
noreply at wordpress.org
Tue Apr 14 23:52:52 UTC 2015
#31974: Separation of Views and static data, such as mime-type arrays from logic
code
--------------------------+-----------------------------
Reporter: LewisCowles | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I propose that WordPress embedded views, and any HTML, CSS, JS, or any
other textual output, and static data such as mime-type arrays, be put in
a framework, to be separated from the logic of the WordPress code-base.
This would allow several advantages over the current system(s) in place.
* Shorter code files, with standardised syntax (lowers the bar for front-
end editors / contributors, as the language files already have. These
users may not be PHP savvy, allowing code editors to work on code,
separately to data-structures, moving WordPress towards a more data-
driven, presentation agnostic code-base.
* Simplified modification of data and portability of data-structures to
systems beyond WordPress & Integrations / Migrations to WordPress, as well
as better sharing with front-end CMS logic and back-end tooling.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31974>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list