{"_id":"larvittmpl","_rev":"36-4b8ba6bae8c08d16fa09b676cdeb9a12","name":"larvittmpl","description":"DOM Template engine for javascript","dist-tags":{"latest":"0.0.8"},"versions":{"0.0.1-beta":{"author":{"name":"Mikael 'Lilleman' Göransson","email":"lilleman@larvit.se","url":"http://github.com/hemligabyran/larvitTmpl"},"private":false,"contributors":[],"dependencies":{"xpath":"x","xmldom":"x"},"description":"DOM Template engine for javascript","devDependencies":{},"keywords":["dom","templating","template"],"main":"larvitTmpl.js","name":"larvittmpl","repository":{"url":"https://github.com/hemligabyran/larvitTmpl","type":"git"},"version":"0.0.1-beta","bugs":{"url":"https://github.com/hemligabyran/larvitTmpl/issues"},"directories":{"test":"test"},"scripts":{"test":"nodeunit test/test-render.js"},"license":"MIT","_id":"larvittmpl@0.0.1-beta","dist":{"shasum":"9d81ecc00590e23881c0138946ef1febb620451b","tarball":"https://registry.npmjs.org/larvittmpl/-/larvittmpl-0.0.1-beta.tgz","integrity":"sha512-y38UqPyd6yl/5W7VEZ/yMNg4JJhbMFxFdpUNLlgdC1vAuriKwcr5SerxLd0rfHOoW7D7WUIWuZGxI+B0E69JRg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFfSBbdTD/9qHFIr3qW+EvvCtU9jaFdW8SiHGRxkCvgWAiAycT34lwdLdMrZA9M2kPghP0PlFst1f/nQ2sk7m417Bw=="}]},"_from":"./","_npmVersion":"1.3.9","_npmUser":{"name":"lilleman","email":"lilleman@larvit.se"},"maintainers":[{"name":"lilleman","email":"lilleman@larvit.se"}]},"0.0.2-beta":{"author":{"name":"Mikael 'Lilleman' Göransson","email":"lilleman@larvit.se","url":"http://github.com/hemligabyran/larvitTmpl"},"private":false,"contributors":[],"dependencies":{"xpath":"x","xmldom":"x"},"description":"DOM Template engine for javascript","devDependencies":{},"keywords":["dom","templating","template"],"main":"larvitTmpl.js","name":"larvittmpl","repository":{"url":"https://github.com/hemligabyran/larvitTmpl","type":"git"},"version":"0.0.2-beta","bugs":{"url":"https://github.com/hemligabyran/larvitTmpl/issues"},"directories":{"test":"test"},"scripts":{"test":"nodeunit test/test-render.js"},"license":"MIT","_id":"larvittmpl@0.0.2-beta","dist":{"shasum":"161decd95f88a3fac607e66812f7516588e233f8","tarball":"https://registry.npmjs.org/larvittmpl/-/larvittmpl-0.0.2-beta.tgz","integrity":"sha512-B3IR9M0e3sf66VZcsF8Vp2YbqM2ZDQrlv7EBNBRgYOmnk3X2hy8GeyJ/LpW/myA9oEWpaJ24Ekfba6no8OmOlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeDYgfYD/htyJ9UJbKdlfOGrhP/XPE8q0eXMzKLRGgPgIhAJhYx9GwMnpC/XneXhIZfBZJqBd/tmYzDk/YXFjo8jrQ"}]},"_from":"./","_npmVersion":"1.3.9","_npmUser":{"name":"lilleman","email":"lilleman@larvit.se"},"maintainers":[{"name":"lilleman","email":"lilleman@larvit.se"}]},"0.0.3-beta":{"author":{"name":"Mikael 'Lilleman' Göransson","email":"lilleman@larvit.se","url":"http://github.com/hemligabyran/larvitTmpl"},"private":false,"contributors":[],"dependencies":{"xpath":"x","xmldom":"x","libxmljs":"x"},"description":"DOM Template engine for javascript","devDependencies":{},"keywords":["dom","templating","template"],"main":"larvitTmpl.js","name":"larvittmpl","repository":{"url":"https://github.com/hemligabyran/larvitTmpl","type":"git"},"version":"0.0.3-beta","bugs":{"url":"https://github.com/hemligabyran/larvitTmpl/issues"},"directories":{"test":"test"},"scripts":{"test":"nodeunit test/test-render.js"},"license":"BSD-2-Clause","_id":"larvittmpl@0.0.3-beta","dist":{"shasum":"7383d2769bc5e613c53c90170e2304cb3c94d2b7","tarball":"https://registry.npmjs.org/larvittmpl/-/larvittmpl-0.0.3-beta.tgz","integrity":"sha512-Vo+LiIWjTuAu7gylejTBrpnUYeQoor+PZ7OOy8ISFxQZI42OFLk7tnHTwXwVWbYc99I1I49+WDMC/Pcco8PTqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICQUjbpQZjzoJhLY2oruxb4iM6vXB/QszBnw7KkFKrAXAiBIma9nl1FNVPynH2s0E6wZWXOYmaqYfIGOQfbWSz6kSQ=="}]},"_from":"./","_npmVersion":"1.3.9","_npmUser":{"name":"lilleman","email":"lilleman@larvit.se"},"maintainers":[{"name":"lilleman","email":"lilleman@larvit.se"}]},"0.0.4-beta":{"author":{"name":"Mikael 'Lilleman' Göransson","email":"lilleman@larvit.se","url":"http://github.com/hemligabyran/larvitTmpl"},"private":false,"contributors":[],"dependencies":{"xpath":"x","xmldom":"x","libxmljs":"x"},"description":"DOM Template engine for javascript","devDependencies":{},"keywords":["dom","templating","template"],"main":"larvitTmpl.js","name":"larvittmpl","repository":{"url":"https://github.com/hemligabyran/larvitTmpl","type":"git"},"version":"0.0.4-beta","bugs":{"url":"https://github.com/hemligabyran/larvitTmpl/issues"},"directories":{"test":"test"},"scripts":{"test":"nodeunit test/test-render.js"},"license":"BSD-2-Clause","_id":"larvittmpl@0.0.4-beta","dist":{"shasum":"e3de4f0e9ba8c63ad2239a41b6d7dd41c3051a05","tarball":"https://registry.npmjs.org/larvittmpl/-/larvittmpl-0.0.4-beta.tgz","integrity":"sha512-uqKtwR7KCHa4KccJbF/7BUNYj8Bi9xN2JDVAokO0ZAvTMArC2f+B5SJIpbSqhT/g5PSH3NdD0R7evYRW9SAl+g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUdcyPE4CwyrocET+wfycJIqmzH9vPWaT9veUW5TA71gIgHJzhQs89RMtnKr9zdBRfpyWSFFVOnNOxfNP9Lmo1HsM="}]},"_from":"./","_npmVersion":"1.3.9","_npmUser":{"name":"lilleman","email":"lilleman@larvit.se"},"maintainers":[{"name":"lilleman","email":"lilleman@larvit.se"}]},"0.0.5":{"author":{"name":"Mikael 'Lilleman' Göransson","email":"lilleman@larvit.se","url":"http://github.com/hemligabyran/larvitTmpl"},"private":false,"contributors":[],"dependencies":{"xpath":"x","xmldom":"x","libxmljs":"x"},"description":"DOM Template engine for javascript","devDependencies":{},"keywords":["dom","templating","template"],"main":"larvitTmpl.js","name":"larvittmpl","repository":{"url":"https://github.com/hemligabyran/larvitTmpl","type":"git"},"version":"0.0.5","bugs":{"url":"https://github.com/hemligabyran/larvitTmpl/issues"},"directories":{"test":"test"},"scripts":{"test":"nodeunit test/test-render.js"},"license":"BSD-2-Clause","_id":"larvittmpl@0.0.5","dist":{"shasum":"92bd1fb5dc9bde830e67856e867eb87abc64e703","tarball":"https://registry.npmjs.org/larvittmpl/-/larvittmpl-0.0.5.tgz","integrity":"sha512-RZjMOzr9RptAdTljCb1G9oi6jSx6SvV4rMmtAl/zEpC3E66f+aqmKQ/ibEQqy5eR1o6yj5+qJMSL2d9FofVTMA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqXebg4IXcaNFXMsm+v/tV5lXACpNmvkrBqi6iTFLxYAIgZ0J+6pVrdzetdThfnzAU4PEnGye4TLx5n8xAEJnMjV4="}]},"_from":"./","_npmVersion":"1.3.9","_npmUser":{"name":"lilleman","email":"lilleman@larvit.se"},"maintainers":[{"name":"lilleman","email":"lilleman@larvit.se"}]},"0.0.6":{"author":{"name":"Mikael 'Lilleman' Göransson","email":"lilleman@larvit.se","url":"http://github.com/hemligabyran/larvitTmpl"},"private":false,"contributors":[],"dependencies":{"xpath":"x","xmldom":"x","libxmljs":"x"},"description":"DOM Template engine for javascript","devDependencies":{},"keywords":["dom","templating","template"],"main":"larvitTmpl.js","name":"larvittmpl","repository":{"url":"https://github.com/hemligabyran/larvitTmpl","type":"git"},"version":"0.0.6","bugs":{"url":"https://github.com/hemligabyran/larvitTmpl/issues"},"directories":{"test":"test"},"scripts":{"test":"nodeunit test/test-render.js"},"license":"BSD-2-Clause","_id":"larvittmpl@0.0.6","dist":{"shasum":"67be4ad236d932352d0f5d3b55076e41750a7e34","tarball":"https://registry.npmjs.org/larvittmpl/-/larvittmpl-0.0.6.tgz","integrity":"sha512-g1+mKcA9yCv0p8nbw/5ps4xHeRJXEJKZner6fhx87yz5iWvJWVbKbkIGFkJxHAGBJWO0DawXA44i28aVzVbmQg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFyHefLPJclkTI4wdWGcTq8UNHPwVJ+vwtm6X0c/MS8OAiEAh8YvMa5E8vt6ZvkP1pqV5Wdo557uN+CGDrsXu4b/A54="}]},"_from":"./","_npmVersion":"1.3.9","_npmUser":{"name":"lilleman","email":"lilleman@larvit.se"},"maintainers":[{"name":"lilleman","email":"lilleman@larvit.se"}]},"0.0.7":{"author":{"name":"Mikael 'Lilleman' Göransson","email":"lilleman@larvit.se","url":"http://github.com/hemligabyran/larvitTmpl"},"private":false,"contributors":[],"dependencies":{"xpath":"x","xmldom":"x","libxmljs":"x"},"description":"DOM Template engine for javascript","devDependencies":{},"keywords":["dom","templating","template"],"main":"larvitTmpl.js","name":"larvittmpl","repository":{"url":"https://github.com/hemligabyran/larvitTmpl","type":"git"},"version":"0.0.7","bugs":{"url":"https://github.com/hemligabyran/larvitTmpl/issues"},"directories":{"test":"test"},"scripts":{"test":"nodeunit test/test-render.js"},"license":"BSD-2-Clause","_id":"larvittmpl@0.0.7","dist":{"shasum":"9b35dc6f172b094c2fbde90800ebfba58beb599a","tarball":"https://registry.npmjs.org/larvittmpl/-/larvittmpl-0.0.7.tgz","integrity":"sha512-juS/XCO69yIIBICQUjph+Lz90q8RNQ9dBypdNY2Xe6lyUCYwfblElviP4Wf+hk9o35ghstIDbrq7vVbBGiR+ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA3+fUilZ0ZMQOxSc4beRhcz02SlPHscdsWFK6fcgv7GAiEAoLkqjVehptrGPry57agoLTidLv8A8drX8JMmy/djKeY="}]},"_from":"./","_npmVersion":"1.3.9","_npmUser":{"name":"lilleman","email":"lilleman@larvit.se"},"maintainers":[{"name":"lilleman","email":"lilleman@larvit.se"}]},"0.0.8":{"author":{"name":"Mikael 'Lilleman' Göransson","email":"lilleman@larvit.se","url":"http://github.com/hemligabyran/larvitTmpl"},"private":false,"contributors":[],"dependencies":{"xpath":"x","xmldom":"x","libxmljs":"x"},"description":"DOM Template engine for javascript","devDependencies":{},"keywords":["dom","templating","template"],"main":"larvitTmpl.js","name":"larvittmpl","repository":{"url":"https://github.com/hemligabyran/larvitTmpl","type":"git"},"version":"0.0.8","bugs":{"url":"https://github.com/hemligabyran/larvitTmpl/issues"},"directories":{"test":"test"},"scripts":{"test":"nodeunit test/test-render.js"},"license":"BSD-2-Clause","gitHead":"05773a7b2718318fa53dbcc34c1e1694fd23dfc7","homepage":"https://github.com/hemligabyran/larvitTmpl","_id":"larvittmpl@0.0.8","_shasum":"e8f7929e34c3043cd6a9f8550b887475abe30c5b","_from":"./","_npmVersion":"1.4.28","_npmUser":{"name":"lilleman","email":"lilleman@larvit.se"},"maintainers":[{"name":"lilleman","email":"lilleman@larvit.se"}],"dist":{"shasum":"e8f7929e34c3043cd6a9f8550b887475abe30c5b","tarball":"https://registry.npmjs.org/larvittmpl/-/larvittmpl-0.0.8.tgz","integrity":"sha512-gG5J25GJ7w+qgyH7ezcs3mBaGL3jCOCwnoY3ekQ3I1kmwnNKHcVKcd4F0fm3o5OEXT1XIjF3ijC6OavLDUxfSw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDbBqBRrs4ezqKGZkmJlAgx9ZwfkqjfSBi+m7Uy72XCLAIhAK9Rp4L/Zh07cHLrCq3mJzOi4vwrK18j74oDtHvM264h"}]},"deprecated":"Unmaintained"}},"readme":"larvitTmpl\n==========\n\nDOM Template engine for javascript\n\nTests are written for the module \"nodeunit\"\n\nExample of usage:\n\n    var larvitTmpl = require('larvittmpl');\n\n    // Defaults to '<!DOCTYPE html>'\n    larvitTmpl.doctype = '<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">';\n\n    // Where to look for partials, snippets of HTML or XML that\n    // can be included with for example: <partial data-template=\"inc.menu.html\" />\n    // Defaults to './public/html'\n    larvitTmpl.root = './templates';\n\n    // Example template string.\n    var tmplStr = '<html data-attribute=\"htmlLang\">' +\n                    '<head>' +\n                      '<title data-value=\"title\" />' +\n                    '</head>' +\n                    '<body>' +\n                      '<h1 data-value=\"title\" />' +\n                      '<p data-value=\"paragraphs\" />' +\n                      '<ul>' +\n                        '<li data-value=\"listitems\">' +\n                          '<a data-localvalue=\"linkName\" data-localattribute=\"url extraClass\" class=\"link\" />' +\n                        '</li>' +\n                      '</ul>' +\n                    '</body>' +\n                  '</html>';\n\n    // Example template data\n    var tmplData = {\n      'htmlLang': {'name': 'lang', 'value': 'sv'},\n      'title': 'foo',\n      'paragraphs': [\n        'Lorem Ipsum is simply dummy text of the printing.',\n        'It has survived not only five centuries.',\n        'It was popularised in the 1960s.'\n      ],\n      'listitems': [\n        {\n          'linkName': 'Larv IT AB',\n          'url': {'name': 'href', 'value': 'http://larvit.se'}\n        },\n        {\n          'linkName': 'Vinnovera AB',\n          'url': {'name': 'href', 'value': 'http://vinnovera.se'},\n          'extraClass': {'name': 'class', 'value': 'selected'}\n        },\n        {\n          'linkName': 'Hacker News',\n          'url': {'name': 'href', 'value': 'https://news.ycombinator.com/'}\n        },\n      ]\n    };\n\n    larvitTmpl.render(tmplStr, tmplData, function(err, resultStr){\n      /* resultStr is now (without newlines and indents):\n      <!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n      <html data-attribute=\"htmlLang\" lang=\"sv\">\n        <head>\n          <title data-value=\"title\">foo</title>\n        </head>\n        <body>\n          <h1 data-value=\"title\">foo</h1>\n          <p data-value=\"paragraphs\">Lorem Ipsum is simply dummy text of the printing.</p>\n          <p data-value=\"paragraphs\">It has survived not only five centuries.</p>\n          <p data-value=\"paragraphs\">It was popularised in the 1960s.</p>\n          <ul>\n            <li data-value=\"listitems\">\n              <a data-localvalue=\"linkName\" data-localattribute=\"url extraClass\" class=\"link\" href=\"http://larvit.se\">Larv IT AB</a>\n            </li>\n            <li data-value=\"listitems\">\n              <a data-localvalue=\"linkName\" data-localattribute=\"url extraClass\" class=\"link selected\" href=\"http://vinnovera.se\">Vinnovera AB</a>\n            </li>\n            <li data-value=\"listitems\">\n              <a data-localvalue=\"linkName\" data-localattribute=\"url extraClass\" class=\"link\" href=\"https://news.ycombinator.com/\">Hacker News</a>\n            </li>\n          </ul>\n        </body>\n      </html>\n      */\n    });\n\nFor more examples, see the test folder","maintainers":[{"name":"lilleman","email":"lilleman@larvit.se"}],"time":{"modified":"2022-06-19T10:44:00.833Z","created":"2014-10-09T16:18:42.739Z","0.0.1-beta":"2014-10-09T16:18:44.122Z","0.0.2-beta":"2014-10-09T16:20:05.860Z","0.0.3-beta":"2014-10-10T15:36:30.579Z","0.0.4-beta":"2014-10-11T13:04:54.636Z","0.0.5":"2014-10-11T13:53:25.635Z","0.0.6":"2014-10-13T14:46:08.792Z","0.0.7":"2014-10-14T08:38:43.159Z","0.0.8":"2014-10-20T19:03:47.551Z"},"readmeFilename":"README.md","keywords":["dom","templating","template"],"repository":{"url":"https://github.com/hemligabyran/larvitTmpl","type":"git"},"contributors":[],"author":{"name":"Mikael 'Lilleman' Göransson","email":"lilleman@larvit.se","url":"http://github.com/hemligabyran/larvitTmpl"},"bugs":{"url":"https://github.com/hemligabyran/larvitTmpl/issues"},"license":"BSD-2-Clause","users":{},"homepage":"https://github.com/hemligabyran/larvitTmpl"}