Hi Rasika,

I have a list of java objects that I am returning from the server side JS
where the object has a timestamp property in long format(milliseconds), in
that case I will have to iterate the list and get the timestamp of each
object and store them in another list/map and return that separately.

Is it the correct way to do ?

Regards,
Hemika


Hemika Kodikara
Software Engineer
WSO2 Inc.
lean . enterprise . middleware
http://wso2.com

Mobile : +94777688882

On Fri, Jun 24, 2016 at 7:01 AM, Rasika Perera <[email protected]> wrote:

> Really ?
>> Rasika/Sajith, did you guys implement a way to plug-in helpers?
>> I don't believe we should have app specific custom helpers, it makes code
>> hard to understand for someone who is not from that team. I believe we
>> should use the 'toViewModel' function to do any rendering specific
>> conversions. But if there are helpers that is used platform-wide they
>> should be implemented/imported by UUF team.
>
> ​We did not expose handlebar environment into the
> controller(serversideJs). Thus, I don't think App developers can register
> their handlebar custom-helpers into ​HBS.
>
> You can process the timestamp in long format to readable format in js side
>> and return that to display in hbs.
>
> ​+1. ​This is the recommended approach.
>
>
> On Fri, Jun 24, 2016 at 1:03 AM, Manuranga Perera <[email protected]> wrote:
>
>> Yeah, there is a way to write custom helpers in HBS and we can use it by
>>> registering the helper in HBS.
>>
>>
>> Really ?
>> Rasika/Sajith, did you guys implement a way to plug-in helpers?
>>
>> I don't believe we should have app specific custom helpers, it makes code
>> hard to understand for someone who is not from that team. I believe we
>> should use the 'toViewModel' function to do any rendering specific
>> conversions. But if there are helpers that is used platform-wide they
>> should be implemented/imported by UUF team.
>>
>> --
>> With regards,
>> *Manu*ranga Perera.
>>
>> phone : 071 7 70 20 50
>> mail : [email protected]
>>
>
>
>
> --
> With Regards,
>
> *Rasika Perera*
> Software Engineer
> M: +94 71 680 9060 E: [email protected]
> LinkedIn: http://lk.linkedin.com/in/rasika90
>
> WSO2 Inc. www.wso2.com
> lean.enterprise.middleware
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to