{"_id":"jshtml","_rev":"28-718f44f00853c672f053f25412ebfe29","name":"jshtml","description":"razor template engine","dist-tags":{"latest":"0.3.0"},"versions":{"0.2.0":{"name":"jshtml","description":"razor template engine","version":"0.2.0","author":{"name":"Elmer Bulthuis","email":"elmerbulthuis@gmail.com"},"repositories":[{"type":"git","url":"git@github.com:LuvDaSun/jshtml.git"}],"main":"index.js","dependencies":{},"devDependencies":{"zombie":"","express":"","globalize":""},"_npmJsonOpts":{"file":"/home/elmerbulthuis/.npm/jshtml/0.2.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"jshtml@0.2.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.30","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"5ddb64ef9e1c63bf0860453ed7051226f86efaef","tarball":"https://registry.npmjs.org/jshtml/-/jshtml-0.2.0.tgz","integrity":"sha512-+6u8vq2VBo00tCnIMocIHMj3rq5D5vKkMYUUwXFSoGlFOyEhtpUeq7tVudoBDJ8gtpSUfTeEh28VLocX+fNRxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd2kTFf30iuEgfHRIKNOLVual/rAydeyZC4LFiJcFeDQIhAPnIJ0hLtOVBk+w67Or4EldhsLTyvtWfNrAwnj5WVBuX"}]},"maintainers":[{"name":"elmerbulthuis","email":"elmerbulthuis@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.1":{"name":"jshtml","description":"razor template engine","version":"0.2.1","author":{"name":"Elmer Bulthuis","email":"elmerbulthuis@gmail.com"},"repositories":[{"type":"git","url":"git@github.com:LuvDaSun/jshtml.git"}],"main":"index.js","dependencies":{},"devDependencies":{"zombie":"","express":"","globalize":"","sqlite":""},"_npmJsonOpts":{"file":"/home/elmerbulthuis/.npm/jshtml/0.2.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"jshtml@0.2.1","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.30","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"70909648a95f8d0ff016c0f4af3d81a52027026f","tarball":"https://registry.npmjs.org/jshtml/-/jshtml-0.2.1.tgz","integrity":"sha512-4OtKJuvM5zq6JNOaMt9AkMSihAGLz7Svw22DxoIr2lQaCg1irmCiA/Vw+umVyzeAHtW+86ZP9uRC+NIaDg7elA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD1GtFMYhWFsN7oIkC1TpmB+MX58Zu5Pf33xYOzEDz8ygIgOFzwnKcFaFrWHbsSSWI3JeBC2ifX4x5G6jovGqTWnnQ="}]},"maintainers":[{"name":"elmerbulthuis","email":"elmerbulthuis@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.2":{"name":"jshtml","description":"razor template engine","version":"0.2.2","author":{"name":"Elmer Bulthuis","email":"elmerbulthuis@gmail.com"},"repositories":[{"type":"git","url":"git@github.com:LuvDaSun/jshtml.git"}],"main":"index.js","dependencies":{},"devDependencies":{"zombie":"","express":"","globalize":"","sqlite":""},"_npmUser":{"name":"elmerbulthuis","email":"elmerbulthuis@gmail.com"},"_id":"jshtml@0.2.2","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.103","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"bba9b919794fda00fc66190849ccfbf4781ac965","tarball":"https://registry.npmjs.org/jshtml/-/jshtml-0.2.2.tgz","integrity":"sha512-jk1O5BpQtbvGb7afqLRLXyjQIyngBpof5y5Pg4tGrY0xklazVyeXIjW30HIxKxxzH24yJ29M6KMAwUBIPdMhlQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFrl9o7GOfmFhuB/mKTPk1XMS1+2tO+zuPvjxYo9V45+AiBE8fOe/8ov5be/oQZZC2K+JsyZUXUTM/jejUSwzoq7jQ=="}]},"maintainers":[{"name":"elmerbulthuis","email":"elmerbulthuis@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.3":{"name":"jshtml","description":"razor template engine","version":"0.2.3","author":{"name":"Elmer Bulthuis","email":"elmerbulthuis@gmail.com"},"repositories":[{"type":"git","url":"git@github.com:elmerbulthuis/jshtml.git"}],"main":"index.js","dependencies":{"2kenizer":"0.0.7"},"devDependencies":{"zombie":"*","express":"*","globalize":"*"},"_npmUser":{"name":"elmerbulthuis","email":"elmerbulthuis@gmail.com"},"_id":"jshtml@0.2.3","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"0185fcfb06b5d341bcd1141d2567785961179187","tarball":"https://registry.npmjs.org/jshtml/-/jshtml-0.2.3.tgz","integrity":"sha512-xSMZRKNK6e4vDUuTVJcBIQ3sDa/g2P7I4tDKWM7kggJMmUa5kt0gtrU0ZYXAt+fBmyvC5h6OlMiYq6NSu0hioA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEwEY1ELlRkDB1fwQ1GGrogDo7EDLzBlQa7Vc7GyEN7nAiEAsomZXPdq+IdZUVrjo+F1FaYyc7+xbbiIJ0UHLu3A0S8="}]},"readme":"","maintainers":[{"name":"elmerbulthuis","email":"elmerbulthuis@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.2.4":{"name":"jshtml","description":"razor template engine","version":"0.2.4","author":{"name":"Elmer Bulthuis","email":"elmerbulthuis@gmail.com"},"repositories":[{"type":"git","url":"git@github.com:elmerbulthuis/jshtml.git"}],"main":"lib/jshtml.js","scripts":{"test":"node test"},"dependencies":{"2kenizer":"*","sjs":"*"},"devDependencies":{},"readme":"# JsHtml\n\nMaster: [![Build Status](https://travis-ci.org/elmerbulthuis/jshtml.png?branch=master)](https://travis-ci.org/elmerbulthuis/jshtml)\nDevelop: [![Build Status](https://travis-ci.org/elmerbulthuis/jshtml.png?branch=develop)](https://travis-ci.org/elmerbulthuis/jshtml)\n\nJavaScript razor view engine. The razor syntax (also used in asp.net mvc)\nkeeps your html clean and allows you to use javascript in your templates.\n\nCheck out the examples for more information.\n\nIf you want to run the tests, be sure to install the devDependencies first by using\n\t\n\tnpm install\n\t\n\n## Installation\n\t\n\tnpm install jshtml\n\n\n## Example\n\n\t<html>\n\t<head>\n\t\t<title>@locals.title</title>\n\t</head>\n\t\n\t<body>\n\t\n\t<ul class=\"Task\">\n\t@locals.taskList.forEach(function(task, index) {\n\t\t<li class=\"@(index % 2 ? \"Odd\" : \"Even\")\">\n\t\t@tag('a', {href: '/task/' + task.id}, task.name)\n\t\t</li>\n\t\t});\n\t</ul>\n\t\n\t<ul class=\"Task\">\n\t@for(var taskIndex = 0, taskCount = locals.taskList.length; taskIndex < taskCount; taskIndex ++){\n\t\tvar task = locals.taskList[taskIndex];\n\t\t<li class=\"@(taskIndex % 2 ? \"Odd\" : \"Even\")\">\n\t\t<a href=\"/task/@task.id\">@task.name</a>\n\t\t</li>\n\t}\n\t</ul>\n\t\n\t<p>\n\tif you like it, let me know!<br />\n\t- <a href=\"mailto:elmerbulthuis@gmail.com\">elmerbulthuis@gmail.com</a><br />\n\t</p>\n\t\n\t</body>\n\t</html>\n\nAlso check out the examples in the examples folder!\n\n\n## Express\n\nUse it with express!\n\n\nInstall express and jshtml:\n\t\n\tnpm install express\n\tnpm install jshtml\n\t\n\nCreate a simple server (/server.js):\n\t\n\tvar express = require('express');\n\t\n\tvar port = parseInt(process.argv.pop());\n\tvar app = express.createServer();\n\tapp.configure(function() {\n\t\tapp.use(express.bodyParser());\n\t\tapp.use(app.router);\n\t});\n\t\n\tapp.set('view engine', 'jshtml');\n\tapp.get('/', function(req, res) {\n\t\tres.render('index', {\n\t\t\ttitle : 'Test!',\n\t\t\tmessage : 'De groeten'\n\t\t});\n\t});\n\t\n\tapp.listen(port);\n\n\nCreate a layout template (/views/layout.jshtml):\n\t\n\t<html>\n\t<head>\n\t<title>jshtml</title>\n\t</head>\n\t\n\t<body>\n\t@writeBody();\n\t</body>\n\t</html>\n\n\nCreate an index template (/views/index.jshtml):\n\t\n\t<h1>@locals.title</h1>\n\t<p>\n\t@locals.message\n\t</p>\n\n\nStart your server:\n\t\n\tnode server.js 8080\n\n\nBrowse to:\n\t\n\thttp://localhost:8080\n\n\nResult:\n\t\n\t<html> \n\t<head> \n\t<title>jshtml</title> \n\t</head> \n\t \n\t<body> \n\t<h1>Test!</h1> \n\t<p> \n\tDe groeten\n\t</p> \n\t \n\t</body> \n\t</html>\n\n\n\n\n## License \n\nCopyright (c) 2011 Elmer Bulthuis <elmerbulthuis@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"jshtml@0.2.4","dist":{"shasum":"a1e36d8e97aee2aca075e58d908313095b364922","tarball":"https://registry.npmjs.org/jshtml/-/jshtml-0.2.4.tgz","integrity":"sha512-9OxDyenGkDDAPF8ogRf3Yl8KRbrKDJPooeDlKhpM/zS0K2OnCNpQJ2nLAcCsIYqxXNJNMlwbs2wuAPFyvcDrEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDVPNnWemeW5fWEsCrmghjoJAGwBdwHoaWaswn6xSHEzgIgZTH1NNK4GvQTIFIBpQLEjziXvBuyXaLRVaqqZdSJYys="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"elmerbulthuis","email":"elmerbulthuis@gmail.com"},"maintainers":[{"name":"elmerbulthuis","email":"elmerbulthuis@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.3.0":{"name":"jshtml","description":"razor template engine","version":"0.3.0","author":{"name":"Elmer Bulthuis","email":"elmerbulthuis@gmail.com"},"repositories":[{"type":"git","url":"git@github.com:elmerbulthuis/jshtml.git"}],"main":"index.js","scripts":{"test":"mocha test/* --reporter spec"},"dependencies":{"2kenizer":">=0.1.6"},"devDependencies":{"mocha":"*"},"readme":"# JsHtml\n\nMaster: [![Build Status](https://travis-ci.org/elmerbulthuis/jshtml.png?branch=master)](https://travis-ci.org/elmerbulthuis/jshtml)\nDevelop: [![Build Status](https://travis-ci.org/elmerbulthuis/jshtml.png?branch=develop)](https://travis-ci.org/elmerbulthuis/jshtml)\n\nJavaScript razor view engine. The razor syntax (also used in asp.net mvc)\nkeeps your html clean and allows you to use javascript in your templates.\n\nCheck out the examples for more information.\n\nIf you want to run the tests, be sure to install the devDependencies first by using\n\t\n\tnpm install\n\t\n\n## Installation\n\t\n\tnpm install jshtml\n\n\n## Example\n\n\t<html>\n\t<head>\n\t\t<title>@locals.title</title>\n\t</head>\n\t\n\t<body>\n\t\n\t<ul class=\"Task\">\n\t@for(var taskIndex = 0, taskCount = locals.taskList.length; taskIndex < taskCount; taskIndex ++){\n\t\tvar task = locals.taskList[taskIndex];\n\t\t<li class=\"@(taskIndex % 2 ? \"Odd\" : \"Even\")\">\n\t\t<a href=\"/task/@task.id\">@task.name</a>\n\t\t</li>\n\t}\n\t</ul>\n\t\n\t<p>\n\tif you like it, let me know!<br />\n\t- <a href=\"mailto:elmerbulthuis@gmail.com\">elmerbulthuis@gmail.com</a><br />\n\t</p>\n\t\n\t</body>\n\t</html>\n\nAlso check out the examples in the examples folder!\n\n\n## Express\n\nuse jshtml-express to use it with express 3!\n\ncheck out https://github.com/elmerbulthuis/jshtml-express for more info.\n\n\n## License \n\nCopyright (c) 2011-2013 Elmer Bulthuis <elmerbulthuis@gmail.com>\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","readmeFilename":"README.md","_id":"jshtml@0.3.0","dist":{"shasum":"7e80515585d65b533757075537d4c931a792bc49","tarball":"https://registry.npmjs.org/jshtml/-/jshtml-0.3.0.tgz","integrity":"sha512-ErLAT6HVvnTfmwjuN3+mNsgs5yQAqitwJtZQt4zJAZzZnRcVtaHCr5EmREmAcoNrQC9Iy3Ov+ZkfIorGEbNrSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCy9xUx090gcOBZDiXSLGzh2qsSMA2IP/7r8CEsTQslFAIgZ3kQOL3ydfGXuADuYFCc6Z5iajo8GEJTCA6C7KxERy4="}]},"_npmVersion":"1.1.66","_npmUser":{"name":"elmerbulthuis","email":"elmerbulthuis@gmail.com"},"maintainers":[{"name":"elmerbulthuis","email":"elmerbulthuis@gmail.com"}],"directories":{},"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"maintainers":[{"name":"elmerbulthuis","email":"elmerbulthuis@gmail.com"}],"time":{"modified":"2023-11-21T14:28:30.631Z","created":"2011-10-18T16:29:39.562Z","0.1.5":"2011-10-18T16:29:42.529Z","0.1.7":"2011-10-21T12:41:03.326Z","0.2.0":"2011-10-22T14:30:30.536Z","0.2.1":"2011-10-25T10:47:24.076Z","0.2.2":"2011-10-27T08:11:53.459Z","0.2.3":"2012-04-17T13:58:20.223Z","0.2.4":"2013-01-29T08:34:00.267Z","0.3.0":"2013-01-29T14:55:54.426Z"},"author":{"name":"Elmer Bulthuis","email":"elmerbulthuis@gmail.com"}}