On 04/02/2014 10:19 PM, S Page wrote:
On Wed, Apr 2, 2014 at 11:09 AM, Sumana Harihareswara
<sumanah(a)wikimedia.org
wrote:
TL;DR: who's testing out the non-Knockout
approaches?
Besides those listed at [1]
The Flow discussion system needs to render templates on both the client and
server[2]. The Flow team is going to use handlebars.js and its lightncandy
PHP implementation; we wanted to try KnockOff/TAssembly but the timing
isn't right. We will be ripping off :) MobileFrontend's integration of
Hogan.js client-side templates.
(Gabriel Wicke wrote "I know that for example handlebars is used in a few
teams right now." -- who else?)
oojs -
https://www.mediawiki.org/wiki/OOjs_UI --
could use this
toolkit with one of the other template approaches, or maybe this is
enough by itself!
As I understand it, OOjs UI is more a rich widget library rather than a
templating system. You would compose a page out of widgets that render what
you want, and yes you could use OOjs UI with a templating engine (it
operates on jQuery elements).
Currently used inside VisualEditor and I am not
sure
whether any other MediaWiki extensions or teams are using it?
The Multimedia team is using OOjs UI for the "About this file" dialog in
the Media Viewer[3] (currently a beta feature). They haven't styled it to
use Agora controls.
Mobile is using VisualEditor with the beginnings of an Agora theme.
Hope this helps, corrections welcome.
[1]
https://www.mediawiki.org/wiki/Requests_for_comment/HTML_templating_library…
[2]
https://www.mediawiki.org/wiki/Flow/Epic_Front-End#Templating
[3]
https://www.mediawiki.org/wiki/Multimedia/About_Media_Viewer
And Ryan Kaldari wrote on April 1:
The mobile web team will be evaluating Gabriel's
KnockoutJS template
implementation sometime between April 14 and April 28. The things we will
be looking at include: how well it will work for mobile's current
templating needs, how appropriate it is for mobile delivery, and how much
effort would be involved in migrating our existing templates to it. We'll
update the list with our findings then.
Do the Flow or Mobile teams have any updates on how well their
experiments worked? Thanks!
--
Sumana Harihareswara
Senior Technical Writer
Wikimedia Foundation