Hi,

Right now in APIM publisher implementation, we have a common client side
javascript file (route.js) which we want share between a fragment
"globalNavigation" and a page. This page is not including the above
fragment. So we are keeping the route.js file in applications "public/js"
folder.

We include the route.js file from the fragment as follows.

{{js "../../../components/root/base/js/route.js"}}

Is there a better way to do this?

FYI the {{js "js/route.js"}} is referring to the fragments public/js folder.

----------------
Regarding the PR https://github.com/wso2/carbon-uuf-common/pull/12

UUFClient.renderFragment method will be more useful if it can inject
content in to a element in dom by providing a css selector or the object
itself in the method calls parameter list. It make more sense to provide
the above instead of the zone.

I have created the following git issue
https://github.com/wso2/carbon-uuf-common/issues/14

thanks,
Chanaka


-- 
Chanaka Jayasena
Associate Tech Lead,
email: [email protected]; cell: +94 77 4464006
blog: http://chanaka3d.blogspot.com
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to