Move the Update List information to a template#2938
Move the Update List information to a template#2938RaymondLim merged 1 commit intoadobe:masterfrom TomMalbran:tom/update-list
Conversation
|
Nice work on converting update list info to a Mustache template. It took me a while to learn Mustache from your conversion. I tried your code in Sprint 19 and it works beautifully. So merging now. |
Move the Update List information to a template
|
Thanks! I've been working with Mustache for the past 2 months and is not that hard to do the conversions. Using {{.}} I can access each element in the update array, just because the data passed is an array and not an object. So in Mustache the code between {{#.}} and {{/.}} is executed for each element in the array and inside this code I can access each property of the object directly. Since newFeatures is an array, i did a for each but this time using {{#newFeatures}} since that is the name of the property, and once again inside this space i can access each property of the new features directly. I could do the same with other templates, like Switch Language and Pref Data if is needed. |
While creating the contributors list I found a TODO on UpdateNotification about moving the HTML to a template, so I did that.