Last modified: 2012-11-29 13:27:35 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T42886, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 40886 - Investigate possibility of using a JS/PHP template engine for rendering DataValue
Investigate possibility of using a JS/PHP template engine for rendering DataV...
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks: 40887
  Show dependency treegraph
 
Reported: 2012-10-09 10:54 UTC by Daniel A. R. Werner
Modified: 2012-11-29 13:27 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Daniel A. R. Werner 2012-10-09 10:54:50 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.
Comment 1 denny vrandecic 2012-10-11 15:45:27 UTC
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.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links