Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-18 Thread Kishanthan Thangarajah
This improvement is now added to the master branch with - https://github.com/wso2/carbon-uuf/pull/76 Syntax of the helper is as follows. 1. Defining the template inline. {{#template }} {{/template}} 2. Using a already defined fragment within the template. {{template }} In #2,

Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-12 Thread Dakshika Jayathilaka
+1 for Jo's suggestion. In most of the cases, we need to reuse initial template part with Ajax requests. Regards, *Dakshika Jayathilaka* PMC Member & Committer of Apache Stratos Associate Technical Lead WSO2, Inc. lean.enterprise.middleware 0771100911 On Fri, Nov 11, 2016 at 3:26 PM, Joseph

Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-11 Thread SajithAR Ariyarathna
[+Kishanthan] On Fri, Nov 11, 2016 at 5:08 PM, Chanaka Jayasena wrote: > +1 for reusing the same template in both client side and server side. For > that I think we need the support from UUF side. > > If there is handebars helper method we defined such way that it will >

Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-11 Thread Chanaka Jayasena
+1 for reusing the same template in both client side and server side. For that I think we need the support from UUF side. If there is handebars helper method we defined such way that it will render the server side template. But before doing that it copies an uncompiled copy of the template to a

Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-11 Thread SajithAR Ariyarathna
> > IMO it would be good if we can re-use the server side templates/partials > in the client side as well. This is on UUF roadmap. Will be available in a future milestone. On Fri, Nov 11, 2016 at 3:44 PM, Yasima Dewmini wrote: > Hi Joseph, > > Thank you for your thought. Yes

Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-11 Thread Yasima Dewmini
Hi Joseph, Thank you for your thought. Yes it would be great if we can re use those templates. I will have a chat with other members and come to a conclusion. Regards, Yasima On Fri, Nov 11, 2016 at 3:26 PM, Joseph Fonseka wrote: > IMO it would be good if we can re-use the

Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-11 Thread Yasima Dewmini
Thank you Sajith for your input. On Fri, Nov 11, 2016 at 2:26 PM, SajithAR Ariyarathna wrote: > UUF does not do client-side rendering (as per 1.0.0-m7 release). What you > can do is, put the Handlebars template (that you want in the client-side) > inside the public directory

Re: [Dev] [APIM][UUF] - Client-side Rendering

2016-11-11 Thread SajithAR Ariyarathna
UUF does not do client-side rendering (as per 1.0.0-m7 release). What you can do is, put the Handlebars template (that you want in the client-side) inside the public directory e.g. .../public/templates/my-template.hbs and in the client-side, get that template using AJAX and render it. On Fri, Nov

[Dev] [APIM][UUF] - Client-side Rendering

2016-11-11 Thread Yasima Dewmini
Hi, I'm working on UUF for API Manager. I need to do some client-side rendering. The only solution I found is to have handlebar templates for the items that need to be rendered in client-side. My question is, is there any standard way to write those templates (Eg. inside public folder?)? OR Are