Ha.  Well, we’ve been using mustache at Wikia for a while, but not heavily.  
The backstory is that we’ve written approximately 270 extensions over the years 
and we have written a few simple frameworks to keep that code manageable.  One 
of those things is a pseudo-mvc framework.  The template itself is not an 
object, and it can be either a PHP or mustache template.  A mustache template 
has more limitations, but in many cases it is sufficient and in general I feel 
like it’s a better idea to just pass data to a simple template rather than 
having a lot of logic in the template.  Additionally, being able to share the 
same template between front end and back end has advantages. 

In my opinion, backwards compatibility with the existing quick template stuff 
is impossible to avoid, so retaining a PHP option is essential but the mustache 
option gives a lot of power to the front end developers which is where a lot of 
the work is being done now… 

For example, the modal dialog that pops up at the end of the new wiki creation 
process is a mustache template:

https://github.com/Wikia/app/blob/dev/extensions/wikia/CreateNewWiki/templates/FinishCreateWiki_WikiWelcomeModal.mustache

On Dec 27, 2013, at 8:41 AM, Niklas Laxström <[email protected]> wrote:

> 2013/12/27 Tyler Romeo <[email protected]>
> 
>> If we want a comprehensive templating system in PHP core,
>> 
> 
> I want a templating system that can be used both in PHP and JavaScript and
> fits in our way of doing i18n. And a bunny.
> 
>  -Niklas
> _______________________________________________
> Wikitech-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikitech-l


_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to