Skip to content
Snippets Groups Projects
  1. Aug 09, 2006
    • deuce's avatar
      Move everything into a function named xjs_load() which can be called by xjs · 63be5587
      deuce authored
      files to convert another xjs file to ssjs and load() it.
      63be5587
    • deuce's avatar
      Add section on XJS files. · 120bf828
      deuce authored
      120bf828
    • deuce's avatar
      Avoid useless write('') statements. · 59897326
      deuce authored
      59897326
    • deuce's avatar
      Keep line numbers in .ssjs as in .xjs... makes error messages much · 5199fa72
      deuce authored
      more usefull.  Only use \n to terminate lines... Win32 uses textmode so it
      already "fixes" that.
      5199fa72
    • deuce's avatar
      Fix bug in last commit. · 9fad417f
      deuce authored
      9fad417f
    • deuce's avatar
      Fix formatting. · 7d2f5a0a
      deuce authored
      Allow <?xjs to be at the end of a line without a trailing space.
      Allow short tags ala PHP... ie: <? some code here ?>
      7d2f5a0a
    • 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
Loading