Hi Arnaud, You can register custom Handlebars helpers in "theme.js" file. In your case, it should be in "/wso2greg-5.1.0/repository/deployment/server/jaggeryapps/publisher/themes/default/theme.js" path. Refer [1] as an example.
[1] https://github.com/wso2/carbon-appmgt/blob/80839ee805c72cc6b2c6d1aeeee39f0ecfecbf81/features/org.wso2.carbon.appmgt.publisher.feature/src/main/resources/publisher/themes/mobileapp/theme.js#L6 Thanks. On Wed, Jan 6, 2016 at 9:08 PM, Arnaud Charpentier < [email protected]> wrote: > Hi, > > We are working on the publisher of governance registry. > > We are trying to internationalize some text chains with jaggery and the > Handlebars template engine. > We understood that we have to define a new helper with the function > registerHelper of the template engine Handlebars but we can't figure out in > which Javascript file we should use this function ? > > We tried to do it in caramel.handlebars.client.js (path > : > /wso2greg-5.1.0/repository/deployment/server/jaggeryapps/publisher/themes/default/js/caramel.handlebars.client.js > ) and some others js files but it didn't work. > > > Regards > > Arnaud Charpentier > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Sajith Ariyarathna Software Engineer; WSO2, Inc.; http://wso2.com/ mobile: +94 77 6602284, +94 71 3951048
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
