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?

4

2 回答 2

1

是的,您可以重用,您可以将常用的 CSS、Javascript 函数、插件添加到 Shell 中,它们将应用于基于此构建的所有项目。

如果它是一个混合应用程序,您可以在下面添加 CSS、JS、图像<<WLProject>>/components/<<ShellName>>/common

对于任何与 android 或 IOS 相关的插件,您可以将它们添加到各自的文件夹中<<WLProject>>/components/<<ShellName>>

干杯!!

于 2014-08-14T18:43:22.650 回答
1

Worklight 中的 Shell 开发可能会为您解决这个问题,但它的复杂性要大得多,我不相信它的价格值得。您可以在IBM Worklight 入门网页的高级主题部分
查看 shell 开发。

于 2014-08-14T04:20:03.757 回答