Hi Ivana,

What I do is combine Rhino with Velocity. So a get a script and use Velocity like a pre-processor.

So I have code like this:

// Some script.
var hello = 10;
#include("/common/StringUtil.js")

The #include is a velocity macro which inserts the other js file into the current one. Usually I would place these at the bottom of the js file.

If you haven't used Velocity there is good documentation here: http://velocity.apache.org/




On 5/23/2010 12:22 PM, Ivana wrote:
Hi,

I need to define variables and functions in one javascript file, and than
include this file into another javascript file and use them. Is that
possible (even if is needed to use java interface)?

Thank you a lot.
Ivana



_______________________________________________
dev-tech-js-engine-rhino mailing list
dev-tech-js-engine-rhino@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-rhino

Reply via email to