Skip to main content
Participant
April 20, 2011
Question

including jsx in another jsx

  • April 20, 2011
  • 2 replies
  • 371 views

hi all,

Can we include a jsx file in to another (like including header files in c programming) ?

Ganesh Jeevaa

This topic has been closed for replies.

2 replies

Kasyan Servetsky
Legend
April 20, 2011

Yes, we can. Use the #include directive.

For example:

#include "../libraries/lib.jsx"

For detailes check out the Preprocessor directives chapter in the Java Script Tools Guide.

Kas

tomaxxi
Inspiring
April 20, 2011

Hey,

Sure you can.

#include "myFunctions.jsx"

Hope that helps.

--

Marijan (tomaxxi)

http://indisnip.wordpress.com/

http://inditip.wordpress.com/