Last modified: 2012-11-29 13:27:35 UTC
Using a template engine which can then be used in PHP as well as in JavaScript, allowing us to define snippets of HTML with basic logic/placeholders. A engine suited for our needs had to be chosen, it had to be investigated whether any options are already used by other MediaWiki extensions so we could re-use or integrate into core or a separate extension (The actual implementation should probably be done with a resource loader module). This would move a lot of code out of the EntityView classes, the HTML wouldn't have to be generated with the static Html class, which would look a lot prettier and less confusing since the whole markup could just be written as such.
Instead of using a full blown engine, the HTML will be created in the server and then given to the client via a ResourceLoader resource. This means that it is not required to be able to create snippets from templates.