Is there a way to split a huge xul file into small xul files like we can do it using SSI (shtml), tpl, etc?
Is there a way to split a huge xul file into small xul files
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Mozilla uses the C++ preprocessor for that, it runs during build before the XUL file is packaged. See for example browser.xul (look for
#include).If you want to have this behavior at runtime however (along with the unavoidable performance degradation) you have the choice between XUL Overlays and XBL. Which one to choose depends on your goal. If you merely want to specify the contents of a particular tag in a different file then overlays are the way to go. If you need to generate multiple tags with the same or similar contents then you would use XBL.