{"_id":"xjs","_rev":"15-14c6f6e3bf063211ac29d2831d88ed99","name":"xjs","description":"DEPRECATED! A templating language for node.js using xml and javascript","dist-tags":{"latest":"0.1.6"},"versions":{"0.1.0":{"name":"xjs","description":"A templating language for node.js using xml and javascript","keywords":["template","xml","xhp"],"version":"0.1.0","engines":{"node":"0.4"},"author":{"name":"Christopher Johnson"},"main":"lib/xjs.js","directories":{"lib":"./lib"},"repository":{"type":"git","url":"git://github.com/tenorviol/xjs.git"},"licenses":[{"type":"MIT","url":"http://github.com/tenorviol/xjs/raw/master/LICENSE"}],"_id":"xjs@0.1.0","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.5","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"bc825c092747ff351cc55eec4b259936121c7c14","tarball":"https://registry.npmjs.org/xjs/-/xjs-0.1.0.tgz","integrity":"sha512-0yARfwcgEpMITBZLN+IpNsXk7h7GzLhtoA8X0CTD8Ae1AsRYwnkzhYl8T2sTmQMdyxbSbtBNpJayC2itZXio5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFhQwRyF9I24/HhiP+qc5OTuDoPa4umrjgpDHGe83/tKAiB6D+9oN5nBgHQl95UtaME1tqg7y0MW/I2XiRoIOE10zA=="}]}},"0.1.1":{"name":"xjs","description":"A templating language for node.js using xml and javascript","keywords":["template","xml","xhp"],"version":"0.1.1","engines":{"node":"0.4"},"author":{"name":"Christopher Johnson"},"main":"lib/xjs.js","directories":{"lib":"./lib"},"repository":{"type":"git","url":"git://github.com/tenorviol/xjs.git"},"licenses":[{"type":"MIT","url":"http://github.com/tenorviol/xjs/raw/master/LICENSE"}],"_id":"xjs@0.1.1","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.5","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"d9db84c35ed38e84294bd35a84a7d949a6eb5069","tarball":"https://registry.npmjs.org/xjs/-/xjs-0.1.1.tgz","integrity":"sha512-bXsO7jCOh6FLUA6VRGln8OtJdpyUI3p13J/6YY2GSMnFY8FCoW6Wggcb42FbysByILbtAB/kr8puBvElY/yxAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5fxKCHj6XWscQUyr8IOrO3zMYyyTYUhhaLQZFdScrMAIhAN2PHwTDRKZ6Y+R5YxUmplk05a4KEn6sBNXRFNXn+McX"}]}},"0.1.2":{"name":"xjs","description":"A templating language for node.js using xml and javascript","keywords":["template","xml","xhp"],"version":"0.1.2","author":{"name":"Christopher Johnson"},"engines":{"node":"0.4"},"main":"lib/xjs.js","bin":{"xjsserver":"./bin/xjsserver"},"repository":{"type":"git","url":"git://github.com/tenorviol/xjs.git"},"licenses":[{"type":"MIT","url":"http://github.com/tenorviol/xjs/raw/master/LICENSE"}],"_id":"xjs@0.1.2","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.5","directories":{"lib":"./lib","bin":"./bin"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"27e984dcd055f8d27976967ca2d5d2f5762e77af","tarball":"https://registry.npmjs.org/xjs/-/xjs-0.1.2.tgz","integrity":"sha512-tvR+JagTPWkjzGjIdXpXlWZSRaoit6sS62PxIpUxr48C9+tbzne+v0W35xdwue/vDFQR5ADhXs2lSiP6B9nIbw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDW3s+wX2UKX0mAyfblhJ/jbMiJuyvGuWWAFcj0KB3rtAIgaWkhNjT7fQrMckiMlbptB/tiBN4CfyScBns0xC6DVq0="}]}},"0.1.3":{"name":"xjs","description":"A templating language for node.js using xml and javascript","keywords":["template","xml","xhp"],"version":"0.1.3","author":{"name":"Christopher Johnson"},"engines":{"node":"0.4"},"main":"lib/xjs.js","bin":{"xjsserver":"./bin/xjsserver"},"repository":{"type":"git","url":"git://github.com/tenorviol/xjs.git"},"licenses":[{"type":"MIT","url":"http://github.com/tenorviol/xjs/raw/master/LICENSE"}],"_id":"xjs@0.1.3","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.6","directories":{"lib":"./lib","bin":"./bin"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"9644719964ecceeb2d2088984bec60d5218deb14","tarball":"https://registry.npmjs.org/xjs/-/xjs-0.1.3.tgz","integrity":"sha512-5OKA1WZNwvf1qD6sbNo87gq6uccGZA+zT0RkB1wKagiFkoDbvqV7KX4NTHbOS24RNDhMuQDnJ5wMYIGFa7SXEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBCGeSp5xpMA6EjiFguwcG2yBNLB8wcWRdbW9Gv3Kzw5AiEAjTQtMSka6XJH0U4D+jvQ0mN7zk6H5wBOIzCh90Z0vyo="}]}},"0.1.4":{"name":"xjs","description":"A templating language for node.js using xml and javascript","keywords":["template","xml","xhp"],"version":"0.1.4","author":{"name":"Christopher Johnson"},"engines":{"node":"0.4"},"main":"lib/xjs.js","bin":{"xjsserver":"./bin/xjsserver"},"repository":{"type":"git","url":"git://github.com/tenorviol/xjs.git"},"licenses":[{"type":"MIT","url":"http://github.com/tenorviol/xjs/raw/master/LICENSE"}],"_id":"xjs@0.1.4","_engineSupported":true,"_npmVersion":"0.3.15","_nodeVersion":"v0.4.7","directories":{"lib":"./lib","bin":"./bin"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"5621a2363a74b25adeef9e73f39fd09e430fcb18","tarball":"https://registry.npmjs.org/xjs/-/xjs-0.1.4.tgz","integrity":"sha512-mrpX9tVMr71bah8uw2pkJxaN08De8UkBWnepzgK/CExfLqo7wpqwg12RMpAAW1j1d3azNEuJNbisHcofPYPaCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEn5mHaFydc/Ap/cUgTUdcNbZWjklEe9iwR6YpaJokSgAiEAmVXLrTAccbudP8BXYEcXIoaMUTvfT4k2HXeDNvbSzSI="}]}},"0.1.6":{"name":"xjs","description":"DEPRECATED! A templating language for node.js using xml and javascript","keywords":["template","xml","xhp"],"version":"0.1.6","author":{"name":"Christopher Johnson"},"engines":{"node":"0.4"},"main":"lib/xjs.js","bin":{"xjsserver":"./bin/xjsserver"},"repository":{"type":"git","url":"git://github.com/tenorviol/xjs.git"},"licenses":[{"type":"MIT","url":"http://github.com/tenorviol/xjs/raw/master/LICENSE"}],"gitHead":"1f0744354b311066d6e58d11f9f5c602dae926af","bugs":{"url":"https://github.com/tenorviol/xjs/issues"},"homepage":"https://github.com/tenorviol/xjs#readme","_id":"xjs@0.1.6","_npmVersion":"5.6.0","_nodeVersion":"9.10.1","_npmUser":{"name":"tenorviol","email":"tenorviol@yahoo.com"},"dist":{"integrity":"sha512-PQQHePCA0iSbojOpqZ8OWHZcGhEBz7y2UlozgFdGnxLxzfNYIcnnV/GOhbIHS5jUpWDKGg906kA4SQyRWy6btA==","shasum":"69b883f53964e8398f152dccf2eeef782d54d993","tarball":"https://registry.npmjs.org/xjs/-/xjs-0.1.6.tgz","fileCount":27,"unpackedSize":857025,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbxxQBfS63ivigNnueXs7+/1EIHX1BOnPt5yJAGWx6ogIhAK0NOUtOol9w+rL4sNPIqyRwrwlo6JeCipxpCVDyKB6V"}]},"maintainers":[{"name":"tenorviol","email":"tenorviol@yahoo.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/xjs_0.1.6_1522767567770_0.35670043146958275"},"_hasShrinkwrap":false}},"maintainers":[{"name":"tenorviol","email":"tenorviol@yahoo.com"}],"time":{"modified":"2022-06-29T05:24:55.548Z","created":"2011-04-11T07:48:09.010Z","0.1.0":"2011-04-11T07:48:09.370Z","0.1.1":"2011-04-12T05:16:14.500Z","0.1.2":"2011-04-12T15:50:52.528Z","0.1.3":"2011-04-17T06:22:35.810Z","0.1.4":"2011-04-29T15:19:19.065Z","0.1.6":"2018-04-03T14:59:27.886Z"},"author":{"name":"Christopher Johnson"},"repository":{"type":"git","url":"git://github.com/tenorviol/xjs.git"},"homepage":"https://github.com/tenorviol/xjs#readme","keywords":["template","xml","xhp"],"bugs":{"url":"https://github.com/tenorviol/xjs/issues"},"readme":"¡DEPRECATED! - xjs\n===\n\nThis library is no longer maintained. Please use [react.js](https://reactjs.org/).\n\nxml javascript templates for node.js\n\nStatus (Pre-alpha)\n------------------\n\nStill having fun getting all the core features going. Ver 0.2 will be the first alpha release.\n\nSome goals\n----------\n\n1. No new languages. Templates are expressed as xml and javascript.\n2. Enforce balanced xml markup.\n3. Good error reporting, including invalid html/xml.\n4. Inline javascript blocks, which can themselves contain inline xjs.\n5. Custom tags, with optional asynchronous rendering.\n6. Template scope variables.\n\nUsage\n-----\n\nCreate an xjs template, `helloworld.xjs`:\n\n    {{\n      var greeting = 'Hello world!';\n    }}\n    <html>\n    <head>\n      <title>My xjs template</title>\n    </head>\n    <body>\n      <div id=\"greeting\">{{= greeting }}</div>\n    </body>\n    </html>\n\nRequire the xjs module compiler, and respond to an http request using xjs\n\n    require('xjs');\n    var http = require('http');\n    http.createServer(function (req, res) {\n      res.writeHead(200, {'Content-Type': 'text/plain'});\n      require('./helloworld.xjs').render(function(result) {\n        res.end(result);\n      });\n    }).listen(8124, \"127.0.0.1\");\n    console.log('Server running at http://127.0.0.1:8124/');\n\nExamples\n--------\n\n### Echo (html escaped)\n\n    {{= 'Hello world! < J.R.R. Tolkein' }}\n\n    // Output: Hello world! &lt; J.R.R. Tolkein\n\n### Tags\n\n    <div id={foo} class=\"foo\">{{= bar('Fubar!') }}</div>\n\n    // Output: <div id=\"value of foo\" class=\"foo\">return value of bar</div>\n\n### Inline xj\n\n    <div id=\"page\">\n    {{\n      var template;\n      if (foo) {\n        template = <div>{{foo}}</div>\n      } else {\n        template = <div>bar</div>\n      }\n      template.render(response);\n    }}\n    </div>\n\n    // Output 1: <div id=\"page\"><div>value of foo</div></div>\n    // Output 2: <div id=\"page\"><div>bar</div></div>\n\n### Template scope\n\n    {{\n      var QS = require('querystring')\n      var q = { foo:'bar' };\n    }}\n    <a href={ '/link?' + QS.stringify(q) }>click me</a>\n\n    // Output: <a href=\"/link?foo=bar\">click me</a>\n\n### Script modification and output\n\n    <script>\n    // <![CDATA[\n      console.log({{= JSON.stringify(foo) }});\n    // ]]>\n    </script>\n\n    /* Output:\n      <script>\n      // <![CDATA[\n        console.log(\"value of foo\");\n      // ]]>\n      </script>\n    */\n\nLicense\n-------\n\nCopyright (C) 2011 by Christopher Johnson\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","readmeFilename":"readme.md"}