Skip to content
Snippets Groups Projects
  1. Aug 09, 2006
    • deuce's avatar
      A much better xjs handler... works as follows: · 758bd8ab
      deuce authored
      1) If the *.xjs.ssjs file exists and is newer than the *.xjs file, simply
         load()s the *.xjs.ssjs file.
      2) Otherwise, generates the *.xjs.ssjs file from the *.xjs file as follows:
         Anything inside the tag <?xjs ... ?> is SSJS.
      
      A simple welcome.xjs page would then be as follows:
      <html>
      <head>
      <title><?xjs write(system.name)?></title>
      </head>
      <body>
      Your SysOp <?xjs write(system.operator)?> would like to welcome you to
      <?xjs write(system.name) ?>
      </body>
      </html>
      
      This is converted to welcome.xjs.ssjs as follows:
      writeln('<html>');
      writeln('<head>');
      write('<title>');
      write(system.name);
      writeln('</title>');
      writeln('</head>');
      writeln('<body>');
      write('Your SysOp ');
      write(system.operator);
      writeln(' would like to welcome you to');
      write('');
      write(system.name) ;
      writeln('</body>');
      writeln('</html>');
      
      Now all you PHP folks out there can get comfortable writing XJS scripts
      if I understand how PHP embedding works.
      758bd8ab
  2. Aug 08, 2006
  3. Aug 07, 2006
  4. Aug 04, 2006
  5. Aug 03, 2006
  6. Aug 02, 2006
  7. Jul 24, 2006
  8. Jul 23, 2006
  9. Jul 22, 2006
  10. Jul 21, 2006
  11. Jul 20, 2006
  12. Jul 17, 2006
  13. Jul 16, 2006
  14. Jul 15, 2006
Loading