{"_id":"mote","_rev":"8-ea8e57a24628e76d3f96a2d67a414842","name":"mote","description":"A fast mustache template engine for JavaScript","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"author":{"name":"satchmorun","email":"rulfzid@gmail.com"},"name":"mote","description":"A fast mustache template engine for JavaScript","version":"0.1.0","homepage":"https://github.com/satchmorun/mote","keywords":["mustache","mote","template","templates"],"main":"./mote","repository":{"type":"git","url":"git://github.com/satchmorun/mote.git"},"dependencies":{},"devDependencies":{},"_npmUser":{"name":"satchmorun","email":"rulfzid@gmail.com"},"_id":"mote@0.1.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"33cda1690eac1f12179a2c16711002d9a471a965","tarball":"https://registry.npmjs.org/mote/-/mote-0.1.0.tgz","integrity":"sha512-/CAv6BWveS/J3nvdPkwtdOp1T5cmqpj9Dw+PQd866jpRmNujUMFDkxR/g0dCYOV15byBnae/5wBrzo4TUOMiyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0bAheelnDxgAKcDFb5aJvEE4Wrrp1i9IOCbjVp3Pv1wIgTD6x83/Kr3CVKhNJy1NwILFTDkIM+WT7Z+f3IKgMvXg="}]},"maintainers":[{"name":"satchmorun","email":"rulfzid@gmail.com"}]},"0.2.0":{"author":{"name":"satchmorun","email":"rulfzid@gmail.com"},"name":"mote","description":"A fast mustache template engine for JavaScript","version":"0.2.0","homepage":"https://github.com/satchmorun/mote","keywords":["mustache","mote","template","templates"],"main":"./mote","repository":{"type":"git","url":"git://github.com/satchmorun/mote.git"},"dependencies":{},"devDependencies":{},"_npmUser":{"name":"satchmorun","email":"rulfzid@gmail.com"},"_id":"mote@0.2.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"90b56bafe04f0f68ae75d9a37271909ea86277f8","tarball":"https://registry.npmjs.org/mote/-/mote-0.2.0.tgz","integrity":"sha512-msjukWFDu5XaPlM8F3mu2MURZUrpSvTfcaTq3CabRFp9iLgdtbhzmcJ3X50oXImyQfUYI4YwGtrkmJ/yH/sRIA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH1/XgrlHkKkr/Tzv+pnBPSdvFOq/CtXxLjAjecBHmzwIhAKkBhWIxjW8TvuqkeldxH/pwRFrrHJKSpZFeuJsHl3iZ"}]},"maintainers":[{"name":"satchmorun","email":"rulfzid@gmail.com"}]}},"readme":"# mote.js\n\nMote is (yet) another [mustache][mu] implementation.\n\nAt the moment, it appears to be the fastest JS mustache engine.\n\n[mu]: http://mustache.github.com/\n\n## For crying out loud, why?\n\nIt started out as a learning exercise. There was a [well-defined spec][spec] to\nmeasure progress against, and I was just messing around.\n\nOnce there was a working implementation, I looked around to see how it\ncompared. Turned out that it was dog-slow. So then the challenge became speed:\ncould mote be competitive with libraries like [mustache.js][mujs],\n[Handlebars][hb], [Hogan][ho], and [dust][du]?\n\nThe answer, extremely surprising to me, was a resounding yes.\n\n[spec]: https://github.com/mustache/spec\n[mujs]: https://github.com/janl/mustache.js/\n[hb]: http://handlebarsjs.com/\n[ho]: http://twitter.github.com/hogan.js/\n[du]: http://akdubya.github.com/dustjs/\n\n## Benchmarks\n\nThe libraries being tested:\n\nMustache: 0.5.0-dev\nHandlebars: 1.0.beta.6\nDust: 0.3.0\nHogan: 1.0.5\nMote: 0.1.0\n\nEach benchmark is run by first compiling the rendering function for each\nlibrary, then benchmarking it with [benchmark.js].\n\nI'm going to make these runnable online, but for now, these are latest\nresults I get on my machine (run with `node bench/bench.js`):\n\n```\n[String]\nmu: Hello World!\nho: Hello World!\nmo: Hello World!\nhb: Hello World!\ndu: Hello World!\nmustache x 8,580,404 ops/sec ±0.56% (59 runs sampled)\nhogan x 12,595,209 ops/sec ±0.60% (61 runs sampled)\nmote x 10,011,836 ops/sec ±0.45% (62 runs sampled)\nhandlebars x 10,171,715 ops/sec ±0.86% (63 runs sampled)\ndust x 2,458,468 ops/sec ±0.31% (61 runs sampled)\nFastest: hogan\n[Replace]\nmu: Hello Mick! You have 30 new messages.\nho: Hello Mick! You have 30 new messages.\nmo: Hello Mick! You have 30 new messages.\nhb: Hello Mick! You have 30 new messages.\ndu: Hello Mick! You have 30 new messages.\nmustache x 730,556 ops/sec ±0.80% (61 runs sampled)\nhogan x 2,138,597 ops/sec ±0.58% (63 runs sampled)\nmote x 2,794,455 ops/sec ±0.48% (62 runs sampled)\nhandlebars x 2,781,628 ops/sec ±0.59% (62 runs sampled)\ndust x 1,432,765 ops/sec ±0.51% (61 runs sampled)\nFastest: mote,handlebars\n[Array]\nmu: MoeLarryCurlyShemp\nho: MoeLarryCurlyShemp\nmo: MoeLarryCurlyShemp\nhb: MoeLarryCurlyShemp\ndu: MoeLarryCurlyShemp\nmustache x 292,332 ops/sec ±1.22% (60 runs sampled)\nhogan x 844,588 ops/sec ±0.64% (62 runs sampled)\nmote x 1,164,609 ops/sec ±0.59% (64 runs sampled)\nhandlebars x 811,080 ops/sec ±0.93% (56 runs sampled)\ndust x 665,598 ops/sec ±0.75% (61 runs sampled)\nFastest: mote\n[Object]\nmu: Larry45\nho: Larry45\nmo: Larry45\nhb: Larry45\ndu: Larry45\nmustache x 510,149 ops/sec ±0.60% (64 runs sampled)\nhogan x 1,486,618 ops/sec ±0.62% (61 runs sampled)\nmote x 2,239,848 ops/sec ±0.80% (62 runs sampled)\nhandlebars x 1,305,359 ops/sec ±1.18% (60 runs sampled)\ndust x 1,108,808 ops/sec ±0.79% (63 runs sampled)\nFastest: mote\n[Partial]\nmu: Hello Moe! You have 15 new messages.Hello Larry! You have 5 new messages.Hello Curly! You have 1 new messages.\nho: Hello Moe! You have 15 new messages.Hello Larry! You have 5 new messages.Hello Curly! You have 1 new messages.\nmo: Hello Moe! You have 15 new messages.Hello Larry! You have 5 new messages.Hello Curly! You have 1 new messages.\nhb: Hello Moe! You have 15 new messages.Hello Larry! You have 5 new messages.Hello Curly! You have 1 new messages.\ndu: Hello Moe! You have 15 new messages.Hello Larry! You have 5 new messages.Hello Curly! You have 1 new messages.\nmustache x 180,849 ops/sec ±0.51% (62 runs sampled)\nhogan x 280,071 ops/sec ±0.58% (58 runs sampled)\nmote x 581,618 ops/sec ±0.45% (62 runs sampled)\nhandlebars x 529,142 ops/sec ±1.08% (60 runs sampled)\ndust x 489,489 ops/sec ±0.83% (61 runs sampled)\nFastest: mote\n[Recursion]\nmu: 11.11.1.1\nho: 11.11.1.1\nmo: 11.11.1.1\nhb: 11.11.1.1\ndu: 11.11.1.1\nmustache x 219,908 ops/sec ±0.53% (60 runs sampled)\nhogan x 370,656 ops/sec ±0.83% (63 runs sampled)\nmote x 563,740 ops/sec ±0.61% (62 runs sampled)\nhandlebars x 546,473 ops/sec ±0.92% (55 runs sampled)\ndust x 545,433 ops/sec ±1.11% (60 runs sampled)\nFastest: mote,handlebars,dust\n[Complex]\nmu: <h1>Colors</h1><ul><li><strong>red</strong></li><li><a href=\"#Green\">green</a></li><li><a href=\"#Blue\">blue</a></li></ul>\nho: <h1>Colors</h1><ul><li><strong>red</strong></li><li><a href=\"#Green\">green</a></li><li><a href=\"#Blue\">blue</a></li></ul>\nmo: <h1>Colors</h1><ul><li><strong>red</strong></li><li><a href=\"#Green\">green</a></li><li><a href=\"#Blue\">blue</a></li></ul>\nhb: <h1>Colors</h1><ul><li><strong>red</strong></li><li><a href=\"#Green\">green</a></li><li><a href=\"#Blue\">blue</a></li></ul>\ndu: <h1>Colors</h1><ul><li><strong>red</strong></li><li><a href=\"#Green\">green</a></li><li><a href=\"#Blue\">blue</a></li></ul>\nmustache x 115,937 ops/sec ±0.55% (64 runs sampled)\nhogan x 326,612 ops/sec ±0.77% (63 runs sampled)\nmote x 398,851 ops/sec ±0.51% (55 runs sampled)\nhandlebars x 295,103 ops/sec ±1.02% (63 runs sampled)\ndust x 339,315 ops/sec ±0.57% (60 runs sampled)\nFastest: mote\n```\n\n## Mustache-spec compliance\n\nMote is fully compliant with all the required specs. To run the specs:\n\n    node spec/run_specs.js all\n\nThere is support for lambdas, but it doesn't follow the spec. It adheres more\nclosely to how Handlebars and dust have implemented lambda functionality. I'll\ndocument this better soon, for now you can look through the source.\n\n## Roadmap\n\n- npm packaging\n- utilities for server-side compilation\n- documentation\n\n","maintainers":[{"name":"satchmorun","email":"rulfzid@gmail.com"}],"time":{"modified":"2022-06-20T10:04:48.941Z","created":"2012-02-05T22:44:10.799Z","0.1.0":"2012-02-05T22:44:12.262Z","0.2.0":"2012-02-10T23:17:45.812Z"},"author":{"name":"satchmorun","email":"rulfzid@gmail.com"},"repository":{"type":"git","url":"git://github.com/satchmorun/mote.git"},"users":{"tunnckocore":true}}