0

My Worklight project contains two separate hybrid mobile applications. The applications have in common a good deal of HTML, CSS and JavaScript. I need a way to encapsulate the common code so that it can be shared by both applications.

Can Worklight Shell and Inner Applications help me to share common code across applications?

If so, where can I find detailed documentation, example code or tutorials that use Shell and Inner Applications for this purpose?

If not, is there another way to share code across Worklight applications?

richardsun
  • 3,245
  • 1
  • 18
  • 22

2 Answers2

1

Shell development in Worklight could potentially solve this for you, but its complexity is much greater and I am not convinced its price is worth it.
You can review shell development in the Advanced Topics section of the IBM Worklight Getting Started web page.

Idan Adar
  • 44,156
  • 13
  • 50
  • 89
1

Yes you can reuse, you can add to Shell common CSS, Javascript functions, Plugins and they will be applied to all the project that are build on top of that.

If it is a hybrid app you can add CSS, JS, Images under <<WLProject>>/components/<<ShellName>>/common

For any plugins related to android or IOS you can add them into respective folders under <<WLProject>>/components/<<ShellName>>

Cheers !!

Sachin Thapa
  • 3,559
  • 4
  • 24
  • 42