{"_id":"htmlcup","_rev":"35-9a3264063e0f0c352b49ac0274b6cc23","name":"htmlcup","description":"Generate HTML5 with CoffeeScript, instead of a templating engine.  Readily extensible library.","dist-tags":{"latest":"1.2.6"},"versions":{"1.0.0-pre.1":{"name":"htmlcup","version":"1.0.0-pre.1","description":"Generate HTML5 with CoffeeScript, instead of a templating engine.  Readily extensible.","keywords":["HTML","CoffeeScript"],"homepage":"http://github.com/rev22/htmlcup","bugs":{"url":"http://github.com/rev22/htmlcup/issues"},"files":["COPYING","Makefile","README.md","htmlcup.coffee","test/MIT-LICENSE","test/extending-library.html","test/extending-library.html.coffee","test/primer.html.coffee","test/test.html","test/test.html.coffee"],"license":"GPL3","_npmUser":{"name":"rev22","email":"michele.bini@gmail.com"},"_id":"htmlcup@1.0.0-pre.1","dependencies":{},"devDependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"f6d96e018a2594843288f5b64f58463f29ed04c3","tarball":"https://registry.npmjs.org/htmlcup/-/htmlcup-1.0.0-pre.1.tgz","integrity":"sha512-atsE+w6nIwyteLQLLP6ynF++hmmQyjqiIiz2QiwfP9gzDKkqJAUBMlNj0n+czCjWq4zhQUZBH58JZ2B6s4+rAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYhKuUtGB/WlNoX/Z8uDz8xOM+Utqx8rR7OI8ggiHPEAIhANrTLOcKJvnvNMVpowkvWAP3w6nZhMdUs2+fsS8SYGcb"}]},"maintainers":[{"name":"rev22","email":"michele.bini@gmail.com"}],"directories":{}},"1.1.0-pre.6":{"name":"htmlcup","version":"1.1.0-pre.6","description":"Generate HTML5 with CoffeeScript, instead of a templating engine.  Readily extensible library.","keywords":["HTML","CoffeeScript"],"homepage":"http://github.com/rev22/htmlcup","bugs":{"url":"http://github.com/rev22/htmlcup/issues"},"files":["COPYING","Makefile","README.md","htmlcup.coffee","lib/htmlcup.js","test/MIT-LICENSE","test/extending-library.html","test/extending-library.html.coffee","test/primer.html","test/primer.html.coffee","test/test.html","test/test.html.coffee"],"devDependencies":{"coffee-script":">=1.3.0 <3.0.0"},"engines":{"node":">=0.6"},"repository":{"type":"git","url":"http://github.com/rev22/htmlcup.git"},"license":"GPL3","_id":"htmlcup@1.1.0-pre.6","dist":{"shasum":"c218e3dea3aa6a58ee7cc0edaef51fac3b6bd393","tarball":"https://registry.npmjs.org/htmlcup/-/htmlcup-1.1.0-pre.6.tgz","integrity":"sha512-9Zia3mNGSwSh1KGk0BMiVqE/QP/BamSIolzbaJxlhFDiUxvwQ79lIKtGBDQHGMJVmtUcMJR9v+7O2T8D3lEr/w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCc0R6rUTEK1Q1kB398emevX4bswGNSu8KMIKpJvBu/tQIgMD1WwYaYKKpiAjXai67g6GPnmVznGa2H2ljIYBn20CM="}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"rev22","email":"michele.bini@gmail.com"},"maintainers":[{"name":"rev22","email":"michele.bini@gmail.com"}],"directories":{}},"1.1.0-pre.7":{"name":"htmlcup","version":"1.1.0-pre.7","description":"Generate HTML5 with CoffeeScript, instead of a templating engine.  Readily extensible library.","keywords":["HTML","CoffeeScript"],"homepage":"http://github.com/rev22/htmlcup","bugs":{"url":"http://github.com/rev22/htmlcup/issues"},"files":["COPYING","Makefile","README.md","htmlcup.coffee","htmlcup.js","test/MIT-LICENSE","test/extending-library.html","test/extending-library.html.coffee","test/primer.html","test/primer.html.coffee","test/test.html","test/test.html.coffee"],"devDependencies":{"coffee-script":">=1.3.0 <3.0.0"},"engines":{"node":">=0.6"},"repository":{"type":"git","url":"git://github.com/rev22/htmlcup.git"},"main":"htmlcup","license":"GPL3","_npmUser":{"name":"rev22","email":"michele.bini@gmail.com"},"_id":"htmlcup@1.1.0-pre.7","dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"c847c96b55d4a0bcc78e5aec67dc2f183e597b12","tarball":"https://registry.npmjs.org/htmlcup/-/htmlcup-1.1.0-pre.7.tgz","integrity":"sha512-9w8l5mIzIjdEWKNt4Svz3fjmfFwQuDt/t23roYbH2ikcVjdx/6zP1VoI2KCJ3Nis9bA2Tjr8LjvlLeAVjliM0Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC2NZ0HAzejdZWURJXKRzGyBNC7penJL24tS819rN7bAwIhAO1XMrUJRxfft0J4lYPLFsHfEyWlHuOY/bScsdT8m1G+"}]},"maintainers":[{"name":"rev22","email":"michele.bini@gmail.com"}]},"1.1.0-pre.8":{"name":"htmlcup","version":"1.1.0-pre.8","description":"Generate HTML5 with CoffeeScript, instead of a templating engine.  Readily extensible library.","keywords":["HTML","CoffeeScript"],"homepage":"http://github.com/rev22/htmlcup","bugs":{"url":"http://github.com/rev22/htmlcup/issues"},"files":["AUTHORS","COPYING","Makefile","README.md","htmlcup.coffee","htmlcup.js","test/MIT-LICENSE","test/extending-library.html","test/extending-library.html.coffee","test/primer.html","test/primer.html.coffee","test/test.html","test/test.html.coffee"],"devDependencies":{"coffee-script":">=1.3.0 <3.0.0"},"engines":{"node":">=0.6"},"repository":{"type":"git","url":"git://github.com/rev22/htmlcup.git"},"main":"htmlcup.js","license":"GPL3","_npmUser":{"name":"rev22","email":"michele.bini@gmail.com"},"_id":"htmlcup@1.1.0-pre.8","contributors":[{"name":"Michele Bini","email":"michele.bini@gmail.com","url":"http://github.com/rev22"}],"dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"3e048c5d6cc93d8e48e926e80b0f7d251515a371","tarball":"https://registry.npmjs.org/htmlcup/-/htmlcup-1.1.0-pre.8.tgz","integrity":"sha512-INgSiwg2UPyyprIP7zbot8LL4dChKt8smMHgpzuK2lWXDWrUXz6J5qITaGcp/f9co3MDEIhtBUyM8eXAyP0F0w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIANQTuxEt/iCj1RK9bqDUYGxUO9X0LafGDylnTHjwq1HAiAYGPgAdy6eOzlrdYwzxPur9gUpSj95zTVPimTDkhL9Nw=="}]},"maintainers":[{"name":"rev22","email":"michele.bini@gmail.com"}]},"1.1.0":{"name":"htmlcup","version":"1.1.0","author":{"name":"Michele Bini","email":"michele.bini@gmail.com"},"description":"Generate HTML5 with CoffeeScript, instead of a templating engine.  Readily extensible library.","keywords":["HTML","CoffeeScript"],"homepage":"http://github.com/rev22/htmlcup","bugs":{"url":"http://github.com/rev22/htmlcup/issues"},"files":["AUTHORS","COPYING","Makefile","README.md","htmlcup.coffee","htmlcup.js","test/MIT-LICENSE","test/extending-library.html","test/extending-library.html.coffee","test/primer.html","test/primer.html.coffee","test/test.html","test/test.html.coffee"],"devDependencies":{"coffee-script":">=1.3.0 <3.0.0"},"engines":{"node":">=0.6"},"repository":{"type":"git","url":"git://github.com/rev22/htmlcup.git"},"main":"htmlcup.js","license":"GPL3","_npmUser":{"name":"rev22","email":"michele.bini@gmail.com"},"_id":"htmlcup@1.1.0","contributors":[{"name":"Michele Bini","email":"michele.bini@gmail.com","url":"http://github.com/rev22"}],"dependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.4","_nodeVersion":"v0.6.19","_defaultsLoaded":true,"dist":{"shasum":"b77c8c0f4c9ea406390ec49cbf3425512052d7d8","tarball":"https://registry.npmjs.org/htmlcup/-/htmlcup-1.1.0.tgz","integrity":"sha512-ISdRHp9YQ+EOuVoMGoj+YNZCbldxFxfo31nGvWD0u4LbSkBS0YztjPonGTVATEhLoxItZEXHjXeolPIbvF00xw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCLRw0nS59VmdtJmcTpqOK1MH490u9tHQAMa6QsfWsLmQIgEV9ZPyuXgtEGzwux8wEmNdeeb4r1NkxmUBMmWHLtw+s="}]},"maintainers":[{"name":"rev22","email":"michele.bini@gmail.com"}]},"1.2.0":{"name":"htmlcup","version":"1.2.0","author":{"name":"Michele Bini","email":"michele.bini@gmail.com"},"description":"Generate HTML5 with CoffeeScript, instead of a templating engine.  Readily extensible library.","keywords":["HTML","CoffeeScript"],"homepage":"http://github.com/rev22/htmlcup","bugs":{"url":"http://github.com/rev22/htmlcup/issues"},"files":["AUTHORS","COPYING","Makefile","README.md","htmlcup.coffee","htmlcup.js","test/MIT-LICENSE","test/extending-library.html","test/extending-library.html.coffee","test/primer.html","test/primer.html.coffee","test/test.html","test/test.html.coffee"],"devDependencies":{"coffee-script":">=1.3.0 <3.0.0"},"engines":{"node":">=0.6"},"repository":{"type":"git","url":"http://github.com/rev22/htmlcup.git"},"main":"htmlcup.js","license":"GPL3","contributors":[{"name":"Michele Bini","email":"michele.bini@gmail.com","url":"http://github.com/rev22"}],"_id":"htmlcup@1.2.0","dist":{"shasum":"f41a0d3e4abdf55a9b3af440097d53a3e1ef6cda","tarball":"https://registry.npmjs.org/htmlcup/-/htmlcup-1.2.0.tgz","integrity":"sha512-xvbZG1luZnpUDAkB2TzxpB9yuSEh2Q4NGHeQvNNQtGXK96irbaatzynURZKIAeIXubp/S7KQFq1dn+Erm5i3Cw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwmk5BZ4TG5w3fdFvApzqXpLe+f+TdReXUX43XpE9vrAIhAPk7Xumt/kSMh1W6RThV33OEwVI8ckRCZRCM46jCkMj7"}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"rev22","email":"michele.bini@gmail.com"},"maintainers":[{"name":"rev22","email":"michele.bini@gmail.com"}]},"1.2.1":{"name":"htmlcup","version":"1.2.1","author":{"name":"Michele Bini","email":"michele.bini@gmail.com"},"description":"Generate HTML5 with CoffeeScript, instead of a templating engine.  Readily extensible library.","keywords":["HTML","CoffeeScript"],"homepage":"http://github.com/rev22/htmlcup","bugs":{"url":"http://github.com/rev22/htmlcup/issues"},"files":["AUTHORS","COPYING","Makefile","README.md","htmlcup.coffee","htmlcup.js","test/MIT-LICENSE","test/extending-library.html","test/extending-library.html.coffee","test/primer.html","test/primer.html.coffee","test/test.html","test/test.html.coffee"],"devDependencies":{"coffee-script":">=1.3.0 <3.0.0"},"engines":{"node":">=0.6"},"repository":{"type":"git","url":"http://github.com/rev22/htmlcup.git"},"main":"htmlcup.js","license":"GPL3","contributors":[{"name":"Michele Bini","email":"michele.bini@gmail.com","url":"http://github.com/rev22"}],"_id":"htmlcup@1.2.1","dist":{"shasum":"01b425ac7f44a9fb2f44ac3ef263faacc3eb31aa","tarball":"https://registry.npmjs.org/htmlcup/-/htmlcup-1.2.1.tgz","integrity":"sha512-peU9JpetYM1m1mMrC5CGbKipwexC6QHu9oU2113oiNf9Jm4GDb1GZBst13Qh4fkDB6enNNxKBnPXvK/B2EVSAw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfsP3T8ta8dUV/P1BX25hveHgy39lwGoSRPiWqE7EjcwIhAI0r95UgcnhHVXrGAaG+fDaXiwq/hCq07mXL+B2RN7ic"}]},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"rev22","email":"michele.bini@gmail.com"},"maintainers":[{"name":"rev22","email":"michele.bini@gmail.com"}]},"1.2.4":{"name":"htmlcup","version":"1.2.4","author":{"name":"Michele Bini","email":"michele.bini@gmail.com"},"description":"Generate HTML5 with CoffeeScript, instead of a templating engine.  Readily extensible library.","keywords":["HTML","CoffeeScript"],"homepage":"http://github.com/rev22/htmlcup","bugs":{"url":"http://github.com/rev22/htmlcup/issues"},"files":["AUTHORS","COPYING","Makefile","README.md","htmlcup.coffee","htmlcup.js","test/MIT-LICENSE","test/extending-library.html","test/extending-library.html.coffee","test/primer.html","test/primer.html.coffee","test/test.html","test/test.html.coffee"],"devDependencies":{"coffee-script":">=1.3.0 <3.0.0"},"engines":{"node":">=0.6"},"repository":{"type":"git","url":"http://github.com/rev22/htmlcup.git"},"main":"htmlcup.js","license":"GPL3","contributors":[{"name":"Michele Bini","email":"michele.bini@gmail.com","url":"http://github.com/rev22"}],"_id":"htmlcup@1.2.4","scripts":{},"_shasum":"78364f7bb9d9b002a99a202e252edb64f9582bd8","_from":".","_npmVersion":"2.7.6","_nodeVersion":"0.10.25","_npmUser":{"name":"rev22","email":"michele.bini@gmail.com"},"maintainers":[{"name":"rev22","email":"michele.bini@gmail.com"}],"dist":{"shasum":"78364f7bb9d9b002a99a202e252edb64f9582bd8","tarball":"https://registry.npmjs.org/htmlcup/-/htmlcup-1.2.4.tgz","integrity":"sha512-kitjHroZCJqMDjzq04pC1G4H5xfGpdCOLF1bm3YHpM3evhZyJAiElKoALPT9DEXMj7dCzfcMVngI2uPB1Ni3yA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGZ9o2DmkkuI0WmUBbHRFZ02yGpdjQqqT5KskZW1sGWtAiAGZkEzTLPv0wmPYQRiPOIGiCkAZhqZuSyuGnRfVD+zcg=="}]}},"1.2.5":{"name":"htmlcup","version":"1.2.5","author":{"name":"Michele Bini","email":"michele.bini@gmail.com"},"description":"Generate HTML5 with CoffeeScript, instead of a templating engine.  Readily extensible library.","keywords":["HTML","CoffeeScript"],"homepage":"http://github.com/rev22/htmlcup","bugs":{"url":"http://github.com/rev22/htmlcup/issues"},"files":["AUTHORS","COPYING","Makefile","README.md","htmlcup.coffee","htmlcup.js","test/MIT-LICENSE","test/extending-library.html","test/extending-library.html.coffee","test/primer.html","test/primer.html.coffee","test/test.html","test/test.html.coffee"],"devDependencies":{"coffee-script":">=1.3.0 <3.0.0"},"engines":{"node":">=0.6"},"repository":{"type":"git","url":"http://github.com/rev22/htmlcup.git"},"main":"htmlcup.js","license":"GPL3","contributors":[{"name":"Michele Bini","email":"michele.bini@gmail.com","url":"http://github.com/rev22"}],"_id":"htmlcup@1.2.5","scripts":{},"_shasum":"c3ce3ef82187c553b7d43ceda618004c07359605","_from":".","_npmVersion":"2.7.6","_nodeVersion":"0.10.25","_npmUser":{"name":"rev22","email":"michele.bini@gmail.com"},"maintainers":[{"name":"rev22","email":"michele.bini@gmail.com"}],"dist":{"shasum":"c3ce3ef82187c553b7d43ceda618004c07359605","tarball":"https://registry.npmjs.org/htmlcup/-/htmlcup-1.2.5.tgz","integrity":"sha512-kWdO7zSJM1SIc5CC/mlQj0LCMIIzw6PVQIGyFKXfv1/yx4AYP7krOEYTHK//17Q3PtdUHfKwGIDK2wGkNOfzAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRPkq8ckTaAYjBkegnyN0la5JeZPkQTW5iq5m4Wb+tJQIgOxpw6cW8YLJRR0gqqtIDQpi/1uOTVzAWOQecTqwWv1E="}]}},"1.2.6":{"name":"htmlcup","version":"1.2.6","author":{"name":"Michele Bini","email":"michele.bini@gmail.com"},"description":"Generate HTML5 with CoffeeScript, instead of a templating engine.  Readily extensible library.","keywords":["HTML","CoffeeScript"],"homepage":"http://github.com/rev22/htmlcup","bugs":{"url":"http://github.com/rev22/htmlcup/issues"},"files":["AUTHORS","COPYING","Makefile","README.md","htmlcup.coffee","htmlcup.js","test/MIT-LICENSE","test/extending-library.html","test/extending-library.html.coffee","test/primer.html","test/primer.html.coffee","test/test.html","test/test.html.coffee"],"devDependencies":{"coffee-script":">=1.3.0 <3.0.0"},"engines":{"node":">=0.6"},"repository":{"type":"git","url":"http://github.com/rev22/htmlcup.git"},"main":"htmlcup.js","license":"GPL3","contributors":[{"name":"Michele Bini","email":"michele.bini@gmail.com","url":"http://github.com/rev22"}],"_id":"htmlcup@1.2.6","scripts":{},"_shasum":"9a75546d60a513c165c3bac6aeb32833f721b3f7","_from":".","_npmVersion":"2.7.6","_nodeVersion":"0.10.25","_npmUser":{"name":"rev22","email":"michele.bini@gmail.com"},"maintainers":[{"name":"rev22","email":"michele.bini@gmail.com"}],"dist":{"shasum":"9a75546d60a513c165c3bac6aeb32833f721b3f7","tarball":"https://registry.npmjs.org/htmlcup/-/htmlcup-1.2.6.tgz","integrity":"sha512-A4I5WnCTDiglCnf8lcM+1ppVtx1eihKbDhzDm2hW2l4g68URF6Z1WtBpzj2S55jxCjvacrtXc6bgKzwFGTr86A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkkKNcm+U/sR5QMnqPbrjLJTK4MYGstMe8I9FsehE+BAiEAxwNuNO9jAsWX7AIrJk7y8NBAA9Vd17Y3LXpEFu5h6xg="}]}}},"readme":"htmlcup\n=======\n\n```htmlcup``` is an HTML5 code generator.\n\nUsage is intuitive, if you already use CoffeeScript and know HTML:\n\n````coffeescript\nhtmlcup.html5Page ->\n  @head ->\n    @title 'My sweet test page'\n    @style type: 'text/css',\n      \"\"\"\n      body { background:pink }\n      \"\"\"\n  @body ->\n    @p 'Cupcake ipsum dolor. Sit amet I love sugar plum.'\n    # And now a list of yummies\n    @ol ->\n      @li \"Sweet jelly fruitcake\"\n      @li ->\n        @a href: 'http://recipe.com/marzipan', 'Marzipan'\n````\n\nThis is similar in purpose to a templating engine, but with the full power of a programming language in your hands, CoffeeScript.\n\nYou can try ```htmlcup``` here: http://rev22.github.io/htmlcup\n\nExtending the library\n=====================\n\n```htmlcup``` is easily extensible through a reflective programming technique:\n\n````coffeescript\n# Convert a list of lines into an html list\nhtmlcup = htmlcup.extendObject\n  numberLines: (s) ->\n    @ol ->\n      @li x for x in s.split /\\n/\n````\n\nThis extension could be used like:\n\n````coffeescript\nhtmlcup.html5Page ->\n  @head -> @title \"A numbered list of sweets\"\n  @body ->\n    @p \"These are my favorite sweets: \"\n    @numberLines \"\"\"\n      chocolate\n      liquorice\n      fruitcake\n      \"\"\"\n````\n\nLicensing and copyright\n=======================\n\nCopyright (c) 2013 Michele Bini\n\nThe library is available under the terms of version 3 of the General Public License, which you can read in the file ```COPYING```\n\nThe contents of the files in the ```test/``` directory are additionally available with a permissive MIT-style license, which you can read in ```test/MIT-LICENSE```\n","maintainers":[{"name":"rev22","email":"michele.bini@gmail.com"}],"time":{"modified":"2022-06-18T22:05:03.100Z","created":"2013-08-04T08:14:36.851Z","1.0.0-pre.1":"2013-08-04T08:15:24.824Z","1.1.0-pre.6":"2013-08-04T12:17:20.617Z","1.1.0-pre.7":"2013-08-04T20:38:57.349Z","1.1.0-pre.8":"2013-08-04T21:42:13.751Z","1.1.0":"2013-08-04T21:51:15.006Z","1.2.0":"2014-09-16T02:38:04.667Z","1.2.1":"2014-12-24T07:44:58.396Z","1.2.4":"2015-04-20T12:23:34.608Z","1.2.5":"2015-04-20T12:40:27.528Z","1.2.6":"2015-04-20T13:00:04.147Z"},"repository":{"type":"git","url":"http://github.com/rev22/htmlcup.git"},"author":{"name":"Michele Bini","email":"michele.bini@gmail.com"},"homepage":"http://github.com/rev22/htmlcup","keywords":["HTML","CoffeeScript"],"contributors":[{"name":"Michele Bini","email":"michele.bini@gmail.com","url":"http://github.com/rev22"}],"bugs":{"url":"http://github.com/rev22/htmlcup/issues"},"license":"GPL3","readmeFilename":"README.md"}