WebHare community

Load JavaScript from a <webfeature>

Is there a way to ‘inject’ a “.es” file from a web feature?

eg from:

<applysiteprofile path="../web/pages/mypage/mypage.siteprl.xml" />

Which does

<filetype><dynamicexecution routerfunction="..." /></filetype>

And then somewhere in the Object EXTEND WebPageBase, inject a JS file?

Or should I look into the plugin system?

Not possible. We would otherwise need to create an assetpack for every possible combination of assetpack + webfeatures

But you can set up a separate assetpack which loads your original assetpack plus the webfeature JS, and have the webfeature select that assetpack instead