{"_id":"@cursorsdottsx/t","_rev":"2-b7a814277257d3cda133a4e9034a1681","name":"@cursorsdottsx/t","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"@cursorsdottsx/t","version":"1.0.0","description":"This one is a templating library that is stateful and totally does not copy React. Totally. 100%.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cursorsdottsx/t.git"},"keywords":[],"author":{"name":"im-lonely","email":"cursors.dev@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/cursorsdottsx/t/issues"},"homepage":"https://github.com/cursorsdottsx/t#readme","gitHead":"f770950418e0bef71691c14fcc9776bebb5d70ca","_id":"@cursorsdottsx/t@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-QURTrvhVz8ViPkIt5DvFGH9fzSM/2AWeTffA817+6iluT1oxpMp2Kw0wzARcLlPTeTGeJBcjJ2rMhYmZ4juvzg==","shasum":"6f585fb9525ca7ff84c116fa1283e167f603cba0","tarball":"https://registry.npmjs.org/@cursorsdottsx/t/-/t-1.0.0.tgz","fileCount":3,"unpackedSize":6192,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgpXVwCRA9TVsSAnZWagAAHHMP/3IzlCpdVNw6gx02Uv/N\nDUxR38WERy/Np4CWJSDRgSzDGWfxGlsQmgqeiSCST7nq8DMv+XXiAYh6kX3V\nSBHv9FLEaan+hHlM1fLMZPPbr8ei/MrW6DGN5grxS8h4sjV6ocAA5ZRWJbdx\nNHEOVB8IAOp+N3g6+0N4NEfUZr0NEGlIzVLVfrl86zW4gW1cz0aYIbir9s0k\nwQv1Xlwkql46uwtaF87SRmpBI2t9kND829eyD7AxzQBoFKnT2lxZXoQNbTUQ\nVCyMojlCd7Tkmj5xZfdh8ehnWIi470SLNotL5LwJxCPJQvKjwXj/HsEDXhff\nlfzezOHjpZIddO0mZKV7UQUFOgOzYXkKroZ+h1OZ3QyoMobf9vfIQW/886Oi\nF7ZGlmwdbzH9ZorgE3bbpidVIL7JHG4IJWPD6Vkp5hmXx30JZOskRYG8Cq0B\n8m0OBuiURV1IQadGP94NmB+6aV0kcn7dYAMGbccCagjzXaTMeQGOwbHLUujy\nFj0PfQboH2sSlH/Z4NzP9jy7l5Nmo7/iyV80WTaBvfGxNZx2YVoNCbv1KGB5\nJ254boPd1vwdZrcauBNUDQzRBYIsl96JMp4gi8c3aWB0P/d29d9Gkv53/Do/\nviklB1nCDfsfPqGSKl0WE4lNYbzOETf6GUSzuJItaJGShkMm0F/zzOK2+FKy\n5llf\r\n=fFM0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDPOkcjqfjPtTzDqLPVftBDKHassFad+Wl5fOp74twqdAIhAOuYtfV2v364L9MBHSiTLo/x1WLpuKWBvuOU3R0gODaz"}]},"_npmUser":{"name":"cursorspkg","email":"cursors.dev@gmail.com"},"directories":{},"maintainers":[{"name":"cursorspkg","email":"cursors.dev@gmail.com"},{"name":"cursorsdev","email":"cursors.alt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/t_1.0.0_1621456239966_0.6348082779328157"},"_hasShrinkwrap":false},"2.0.0":{"name":"@cursorsdottsx/t","version":"2.0.0","description":"This one is a templating library that is stateful and totally does not copy React. Totally. 100%.","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/cursorsdottsx/t.git"},"keywords":[],"author":{"name":"im-lonely","email":"cursors.dev@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/cursorsdottsx/t/issues"},"homepage":"https://github.com/cursorsdottsx/t#readme","gitHead":"9c716438e58fdbd718884138e19d57037c728b8e","_id":"@cursorsdottsx/t@2.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-KYAGgZTHUe5yCszg5T8wETMFHim66OXMRmu7olkLXxkx5uh3Wiw+8En8Lr0O3wb2q+7YQBpKINf381I4ooraHw==","shasum":"12705a8c8bc57ab29055aea8c2ceb430e02de7b1","tarball":"https://registry.npmjs.org/@cursorsdottsx/t/-/t-2.0.0.tgz","fileCount":4,"unpackedSize":7690,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgqWI6CRA9TVsSAnZWagAAHpMP/0vBXxvhGl++VwTXB7tO\n7B52Gn6VmNKZymdpcQPmC2g3pYUfhvSW7DMVEWFLkTqpLrTUkU4Lwa3anMX9\nG9lecvbGE0vrAbR8aBPgSAYsh0RLzn5Nh6yAcTcjUG8XYmbNK2amYbI+yWua\nhnzijwcdUavKysC1s+ZOFWAPqVTsPbCrzQEB+JmCFh2yhPeOSPrb1is3UGUj\nDxyta4Pb2yfvEOkkabhw/5XF9itUesVgn4yZrG59s9tFgX/d+mvMmdRjFTq9\niK/Eba3YMGFtRBQSR1SF1eUOwbLHbsKaqI3CsB5j0UOywxRHoTYAa9FX6CJJ\n8WImd97sJF0o5lrBNgFW4BoMEBXhNEHJThUYRmxeQBJVPN6K4fbiUcpj2n9Z\n65rWe+vvoqWRhGoQ8iIIPp5zPu+QYEev7ZQxsPFJDM0C0Cl30ULRjyTBJYOb\ng9Cz1tEbCOUPY1Bf1lT3GYWPxi3yfNEJ4AbrJne9uMuY2aZLa3EU0RShid72\nXaOpUbLh/RycoYMzZhCeccynAlkJ6V/lGlY/rV3nCmTnrqshgVCcquBBnNlX\n62+dCL2pEYpaq/X1RYTfHaxYxBLWtsvZ9ShSggHaH0+rLdHyLXhNAJqEcSDx\nv6mv4IvhWEcbQ4QDHiFbm/FiqalApAoER+Gl/nX9VJBR88jX0Bx34ohAf9Uv\nV+23\r\n=EPox\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDBnyqgHSxEiXEueaAtHhXx1brHNVN8cpIGSQqrbNezMAIgKC/53hWAvLpAF1VrTYfXZjjFI4uy/QbD4J2t31fiRxw="}]},"_npmUser":{"name":"cursorspkg","email":"cursors.dev@gmail.com"},"directories":{},"maintainers":[{"name":"cursorspkg","email":"cursors.dev@gmail.com"},{"name":"cursorsdev","email":"cursors.alt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/t_2.0.0_1621713466162_0.3853713493155677"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-19T20:30:39.619Z","1.0.0":"2021-05-19T20:30:40.194Z","modified":"2022-04-05T02:20:40.794Z","2.0.0":"2021-05-22T19:57:46.271Z"},"maintainers":[{"name":"cursorspkg","email":"cursors.dev@gmail.com"},{"name":"cursorsdev","email":"cursors.alt@gmail.com"}],"description":"This one is a templating library that is stateful and totally does not copy React. Totally. 100%.","homepage":"https://github.com/cursorsdottsx/t#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/cursorsdottsx/t.git"},"author":{"name":"im-lonely","email":"cursors.dev@gmail.com"},"bugs":{"url":"https://github.com/cursorsdottsx/t/issues"},"license":"MIT","readme":"| [a](https://www.npmjs.com/package/@cursorsdottsx/a)\n| [b](https://www.npmjs.com/package/@cursorsdottsx/b)\n| [c](https://www.npmjs.com/package/@cursorsdottsx/c)\n| [d](https://www.npmjs.com/package/@cursorsdottsx/d)\n| [e](https://www.npmjs.com/package/@cursorsdottsx/e)\n| [f](https://www.npmjs.com/package/@cursorsdottsx/f)\n| [g](https://www.npmjs.com/package/@cursorsdottsx/g)\n| [h](https://www.npmjs.com/package/@cursorsdottsx/h)\n| [i](https://www.npmjs.com/package/@cursorsdottsx/i)\n| [j](https://www.npmjs.com/package/@cursorsdottsx/j)\n| [k](https://www.npmjs.com/package/@cursorsdottsx/k)\n| [l](https://www.npmjs.com/package/@cursorsdottsx/l)\n| [m](https://www.npmjs.com/package/@cursorsdottsx/m)\n| [n](https://www.npmjs.com/package/@cursorsdottsx/n)\n| [o](https://www.npmjs.com/package/@cursorsdottsx/o)\n| [p](https://www.npmjs.com/package/@cursorsdottsx/p)\n| [q](https://www.npmjs.com/package/@cursorsdottsx/q)\n| [r](https://www.npmjs.com/package/@cursorsdottsx/r)\n| [s](https://www.npmjs.com/package/@cursorsdottsx/s)\n| **t**\n| [u](https://www.npmjs.com/package/@cursorsdottsx/u)\n| [v](https://www.npmjs.com/package/@cursorsdottsx/v)\n| [w](https://www.npmjs.com/package/@cursorsdottsx/w)\n| [x](https://www.npmjs.com/package/@cursorsdottsx/x)\n| [y](https://www.npmjs.com/package/@cursorsdottsx/y)\n| [z](https://www.npmjs.com/package/@cursorsdottsx/z)\n|\n\n**T is for Templates**\n\n# @cursorsdottsx/t\n\nOk, what's another templating library doing? Well thanks for asking.\nThis one is a templating library that is stateful and totally does not copy React. Totally. 100%.\n\n```js\nconst { render, useState } = Templates;\n\nconst [counter, setCounter] = useState(0);\n\nrender(document.getElementById(\"test\"), `<button onclick=\"setCounter(counter + 1)\">Clicked {{ counter }} times!</button>`, { counter });\n```\n\nWell to be fair the templating part is Vue-ish, and what's more is that this library is under 150 lines!\n\n#### Usage\n\nImport the library however you wish, then use the `Templates` object like in the example.\n\n```js\nconst Templates = require(\"@cursorsdottsx/t\");\n```\n\n```js\nimport Templates from \"@cursorsdottsx/t\";\n```\n\n**WARNING: THIS LIBRARY DOES NOT PREVENT XSS IM TOO LAZY TO DO THAT**\n\n[npm abc's homepage](https://codepen.io/cursorsdottsx/full/KKWNRaY)\n","readmeFilename":"README.md"}