Hi all, After some hacking, I was able to find the rendering process of top assets page. top_assets.hbs, the partial which has the template of the page, contains a reference to a helper called 'dyn' which needs to be resolved in the server side (Modules that are used to resolve this helper resides in the server side). Hence, the partial is rendered from the server side and the resulting html content is sent back to the client side. Please find more about caramel rendering from this blog[1]. :)
[1]. https://medium.com/@malintha/a-scoop-of-caramel-7ebe49354814 Regards, Malintha On Thu, Jun 16, 2016 at 3:42 PM, Malintha Fernando <malinth...@wso2.com> wrote: > Hi All, > > In Governance Store, there are 2 main pages which display assets. One is > top-assets page and the other is list page. List page is constructed with a > partial named "assets.hbs" under > $GREG_HOME/repository/deployment/server/jaggeryapps/store/themes/store/partials. > It is rendered using caramel.render() function located at ./js/assets.js. > Once the JSON data for assets are received, it is passed along with the > partial reference to the caramel.render() function, then which returns the > html content that needs to be appended to the HTML div. > > Problem is I couldn't find the location where top-assets.hbs is rendered. > Couldn't find any mentions of caramel.render() along with a reference to > top-assets.hbs. > > Appreciate any inputs on regard to this. > > Thanks & Regards, > -- > Malintha Fernando > Software Engineer > WSO2 Inc. | http://wso2.com > Mobile : +94 718874922 > Blog : http://blog.malintha.org > > Lean . Enterprise . Middleware > > > > > > > -- Malintha Fernando Software Engineer WSO2 Inc. | http://wso2.com Mobile : +94 718874922 Blog : http://blog.malintha.org Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev