{"_id":"wings","_rev":"33-08121879d0fa4149f670d5201c82a7a6","name":"wings","description":"Templating library that works on the server and client closely modeled on Mustache","dist-tags":{"latest":"0.5.9"},"versions":{"0.1.0":{"name":"wings","version":"0.1.0","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/template.js","ender":"lib/ender.js","directories":{"lib":"lib"},"dependencies":{"bonzo":"*"},"devDependencies":{"coffee-script":"*","vows":"*"},"_npmJsonOpts":{"file":"/Users/andrew/.npm/wings/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wings@0.1.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"9013387e0ab4d761b6e674f33d59a07e1784fc08","tarball":"https://registry.npmjs.org/wings/-/wings-0.1.0.tgz","integrity":"sha512-+cc0rlPltSqe4FnU/cFzPlgMAHe738j9ZaihPePu7hubHYdzi/m+YVeKYBlRjiJzLmTrCsg5u3AMGfRGIpVS4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXMeTk15khgjzld1eiAmF/2k6i7EKTLoCAuSkyF7UJsAiASVEhTddm+OHi9n6vfWXtcTUHiaFGtR+RUhDpzRoG5Bw=="}]},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.3.0":{"name":"wings","version":"0.3.0","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender-vows":"*"},"_npmJsonOpts":{"file":"/Users/andrew/.npm/wings/0.3.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wings@0.3.0","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.28","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"f9ecf5af68b09533dc6f23d45acd68272455d6c9","tarball":"https://registry.npmjs.org/wings/-/wings-0.3.0.tgz","integrity":"sha512-M8UMZu/L+u8BPf5z2o+R5uBl1T9PZrfrW4FxBCULHJfaMUYPEJMYfZjJayBuYUhaPHeSDpD3JT9iaDys3TssKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFPSrJJaN87LhHIlKpRZn13ZwoQLcBnc0TNiQ00HD5WEAiAM1EA4MrOWr4CFf2eN4jrB1BCttTx/xapLUAEXGKNLoQ=="}]},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.4.0":{"name":"wings","version":"0.4.0","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender":"*","ender-vows":"*"},"_npmJsonOpts":{"file":"/Users/andrew/.npm/wings/0.4.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wings@0.4.0","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.28","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"d60d84302acab67a6d2e174c00ac14caba87eac8","tarball":"https://registry.npmjs.org/wings/-/wings-0.4.0.tgz","integrity":"sha512-GRPq9Rasf4Rg45OThfulDnyoCQGxwAfeQUMhweww1n1t6/9zlmNzJHpFnO+5cCR4ElDX1eREqMrZAuqbnoD1wA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDa07Jwg3Ia6Nl9UF61iWk9n9CYSVVALTuPt7Fh+yZ3lgIgMbkeE5WeApVyAuYvz+psCYajDmGRIxCR3xxA2NuY4CQ="}]},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.5.0":{"name":"wings","version":"0.5.0","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender":"*","ender-vows":"*"},"_npmJsonOpts":{"file":"/Users/andrew/.npm/wings/0.5.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wings@0.5.0","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.28","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"07eebe081df663d78c0fbcdba85a06f7ac66f265","tarball":"https://registry.npmjs.org/wings/-/wings-0.5.0.tgz","integrity":"sha512-WEH3BT9I1Yw0MZAXk0W8nyyfutJF2KbR5KdGEk1WjV9EldJfsmHlzGmeNWxSxvBB3PtGIojbhJyevvDNij7gUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2p41/7zxyIFbhifxH+gwlSILph7pLfy0BNuyJDbdU4QIhAKQrgVUzlr4uZafEfK3+tpqcxgrIHS+J22ItT4LFmh8G"}]},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.5.1":{"name":"wings","version":"0.5.1","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender":"*","ender-vows":"*"},"_npmJsonOpts":{"file":"/Users/andrew/.npm/wings/0.5.1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wings@0.5.1","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.28","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"0eea9182ba4a2c027c2ec2d5362d2bb8fc144162","tarball":"https://registry.npmjs.org/wings/-/wings-0.5.1.tgz","integrity":"sha512-jMYN5RuM/2wpvsF6XVYDKzoOTScq9t17KV7yp1RWA0wBcGjGsXphnKkn2B91W7gJT/CyW5h5YqqWHqxubi2kjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHjvv9HQSkxpm1pmEwcwLMDTE97RLTdScSVIfYKzsq5eAiEA9Zs+E6KDDyfmp4y15BvClTXtN41rIHdGutbTbqDW0YY="}]},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.5.2":{"name":"wings","version":"0.5.2","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender":"*","ender-vows":"*"},"_npmJsonOpts":{"file":"/Users/andrew/.npm/wings/0.5.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wings@0.5.2","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.28","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"7b0362f7a5a3536140a038914e9e068306425b43","tarball":"https://registry.npmjs.org/wings/-/wings-0.5.2.tgz","integrity":"sha512-WxCDkvJWTVoKeCUsAW1g85NGec/WthS+HOcxtRTiLXqcsVuQGjXZeETD9wsNtSffae6eH0QmFfv7y5+BCpFLng==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3PlJmbjBs45DExqlbDBoPYqmLgzfLD8Xg0259++jFNgIgUnX2mw0oKIbSgN0KNQ/zENVMNN0SgPtTHxnQE1hy8ag="}]},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.5.3":{"name":"wings","version":"0.5.3","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender":"*","ender-vows":"*"},"_npmJsonOpts":{"file":"/Users/andrew/.npm/wings/0.5.3/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wings@0.5.3","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.28","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"de5e1c972621671a1148ab7d70edad99b86f8824","tarball":"https://registry.npmjs.org/wings/-/wings-0.5.3.tgz","integrity":"sha512-yEWbviTgzNPKwDUSXOn/rFsPAUPnWe7oBDVmy1e6XaUWyaZDwjVzZqOrtYLUy103o6TiRymjEawku3chReHCGw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDseWXUinkSmi8Bmu3JNGwy0kHrVGYyZc+RrBqlen+ZWwIhAJE3PXlP49oGChhcQAT+dbxRNdY3i+f+l8VRwwH3vCbX"}]},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.5.4":{"name":"wings","version":"0.5.4","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender":"*","ender-vows":"*"},"_npmJsonOpts":{"file":"/Users/andrew/.npm/wings/0.5.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wings@0.5.4","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.28","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"f68e1bfb3b521ce7b8be696d97274cf9ee2aaa20","tarball":"https://registry.npmjs.org/wings/-/wings-0.5.4.tgz","integrity":"sha512-TXYecbPmCi1/STw9mcVPlofxTPEVCSvVXE8CO2qzYHkWfLKue9Nv/WYPsWE5AKQvwFpJGZsAAr3zqad733htpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDG9Z04nf0OWWf0PgDUgG+aarrRIkPRwKYwmyb6wTnWtwIhAO2fNa72d8dPIX+QCLhMnMhSXXpD272gw4j6g1qU7pU7"}]},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.5.5":{"name":"wings","version":"0.5.5","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender":"*","ender-vows":"*"},"_npmJsonOpts":{"file":"/Users/andrew/.npm/wings/0.5.5/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"wings@0.5.5","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.28","_nodeVersion":"v0.4.12","_defaultsLoaded":true,"dist":{"shasum":"de87677f7386e783997b7f2148ee6a1639cd7e75","tarball":"https://registry.npmjs.org/wings/-/wings-0.5.5.tgz","integrity":"sha512-KwAgKjBHUdU5vhs8W6FhJdASEFdY9QNsj3D6CJ0Vvny8eEhp3Pi3B1KjflN38T7zp1Uu4mTa0M9/qoP/FesWzw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDbPgz/5juRednQeLcOauSRG9Qkk7y2KXzGq/Rs3s4W5AiEA8hSHuy0nR7VZp54lB1NvfSjkESe6si3HyDYQaZIs270="}]},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.5.6":{"name":"wings","version":"0.5.6","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender":"*","ender-vows":"*"},"_npmUser":{"name":"amccollum","email":"amccollum+npm@gmail.com"},"_id":"wings@0.5.6","dependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.0.105","_nodeVersion":"v0.6.1","_defaultsLoaded":true,"dist":{"shasum":"999f146e08526fbf48081c963611ebe81da2259e","tarball":"https://registry.npmjs.org/wings/-/wings-0.5.6.tgz","integrity":"sha512-b5WQ53txyr1jXZ9mXjaWg2CYPzItJmU4QQL8WiopyPObw21KjmJqkRnJjVfP2RB1CQtQHADYsM/qvUGKA2k0cQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQLx4KI4Qz0xVcmQFJTHNuxP8Pg479SJty8UdH3mIOFAIhANCRltMfph0g7oQm4nA3KJQU2XLNf7gv7m3tuW4j9mSb"}]},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.5.7":{"name":"wings","version":"0.5.7","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender":"*","ender-vows":"*"},"_npmUser":{"name":"amccollum","email":"amccollum+npm@gmail.com"},"_id":"wings@0.5.7","dependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"02cff382cf9dd3c5e3d674965de77b5293296af3","tarball":"https://registry.npmjs.org/wings/-/wings-0.5.7.tgz","integrity":"sha512-eHyhc50Qyf48e66zXULdPVHPJbkQIcVIB95l/NynB8EL37RzR7d98Pn6c8RxoU7iHm7AjrEUfa7SgrgsrjmRug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC8AozDp0xUr17mEIlQ/W2ZB/gFplaArpwhjn6MKBDVwAiBNp8eto/F7/bQ0lL609wp9wj7x/xzZG9HbI/30d4/8cw=="}]},"readme":"{ Wings }\n=========\n\n_Wings_ is a logic-less templating library that works on the server and client.\nIt is based on [Mustache](http://mustache.github.com/), but the syntax is less\nverbose and a few advanced features are sacrificed for small code size\n(0.75kb compressed!).\n\nUsage\n-----\n\nThe module exposes a single function,\n`wings.renderTemplate(template, data, links)`. When used with\n[Ender](http://ender.no.de), this function is aliased as `$.render`, which can\nalso be called on selected elements. In the latter case, the function takes\ntwo arguments, and the contents of the element will be rendered as the\ntemplate and returned.\n\nSyntax\n------\n\nThe syntax of Wings can be broken down into two broad categories:\ntags and sections.\n\n### Tags ###\n\nTags are how values are inserted into the template.\n\n#### Basic Tags ####\n\nA single value can be interpolated into the template by just surrounding it\nwith curly braces:\n\n    The quick, brown {animal} jumped over the lazy dogs.\n    \nHere, the value of `animal` in the current context will inserted into the\nsentence where the tag `{animal}` appears.\n\n#### Raw Tags ####\n\nIn the above example, HTML-unsafe characters will be escaped, to prevent this\nbehavior, use a raw text tag:\n\n    <a href=\"{&url}\">{text}</a>\n    \nThe value of `url` will not be escaped.\n\n#### Link Tags ####\n\nTo render a subtemplate passed in as a link, use a link tag:\n\n    <div>\n        {@main}\n    </div>\n    \n#### Comment Tags ####\n\nComments can be inserted into the template using comment tags:\n\n    {# Basic Tag Example #}\n    The quick, brown {animal} jumped over the lazy dogs.\n\n\n### Sections ###\n\nSections are blocks of the template that are rendered together.\n\n#### Basic Sections ####\n\nA basic section is defined as follows:\n\n    {:foo}This is a section.{/foo}\n    \nThe output of the section depends on the value of foo. If `foo` is a boolean,\nthe section will either be included or omitted depending on `foo`'s truthiness.\nIf `foo` is an array, then the section will be rendered once for each element\nof `foo`, with the value of the element as the new context. So, for example,\nif `foo` was equal to the array `[{name: 'John'}, {name: 'Jane'}]`, then\n\n    {:foo}\n    Hi, my name is {name}.\n    {/foo}\n    \nwould be rendered as:\n\n    Hi, my name is John.\n    Hi, my name is Jane.\n    \nIf the section is rendered with a object instead of an array, the section\nwill be rendered once with that object serving as the context. Finally,\nif the section is a function, the function will be called with its first\nargument given as the raw text of the section, and the return value will\nreplace the section.\n\n#### Inverted Sections ####\n\nInverted sections are like normal sections, except that the section will\nonly be rendered if the value is false or the given array is empty:\n\n    {!foo}\n    The foo value was false.\n    {/foo}\n    \n\nAcknowledgements\n----------------\n\nThis module owes much of its design and inspiration to Mustache.","maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.5.8":{"name":"wings","version":"0.5.8","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender":"*","ender-vows":"*"},"_npmUser":{"name":"amccollum","email":"amccollum+npm@gmail.com"},"_id":"wings@0.5.8","dependencies":{},"optionalDependencies":{},"engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"1.1.16","_nodeVersion":"v0.6.15","_defaultsLoaded":true,"dist":{"shasum":"80b36b34085583949017490c807b17874944b512","tarball":"https://registry.npmjs.org/wings/-/wings-0.5.8.tgz","integrity":"sha512-HjtXDkHoquM5lmEb+mprRyIj5i4KhYD9MVR3DUx/1+LFQv4GCfPvLqSc620RzRMIJbLXbvS6Tuc/wwHgJ9OppA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHuQ54kBLV+k2hBcrEB11Oy5Qu6u/gyhaXJoADsoDDhbAiEA/sEhq63rWfx/uKvBLL/tiPAKaFhgWYkXLwsfLRbpdKE="}]},"readme":"{ Wings }\n=========\n\n_Wings_ is a logic-less templating library that works on the server and client.\nIt is based on [Mustache](http://mustache.github.com/), but the syntax is less\nverbose and a few advanced features are sacrificed for small code size\n(0.75kb compressed!).\n\nUsage\n-----\n\nThe module exposes a single function,\n`wings.renderTemplate(template, data, links)`. When used with\n[Ender](http://ender.no.de), this function is aliased as `$.render`, which can\nalso be called on selected elements. In the latter case, the function takes\ntwo arguments, and the contents of the element will be rendered as the\ntemplate and returned.\n\nSyntax\n------\n\nThe syntax of Wings can be broken down into two broad categories:\ntags and sections.\n\n### Tags ###\n\nTags are how values are inserted into the template.\n\n#### Basic Tags ####\n\nA single value can be interpolated into the template by just surrounding it\nwith curly braces:\n\n    The quick, brown {animal} jumped over the lazy dogs.\n    \nHere, the value of `animal` in the current context will inserted into the\nsentence where the tag `{animal}` appears.\n\n#### Raw Tags ####\n\nIn the above example, HTML-unsafe characters will be escaped, to prevent this\nbehavior, use a raw text tag:\n\n    <a href=\"{&url}\">{text}</a>\n    \nThe value of `url` will not be escaped.\n\n#### Link Tags ####\n\nTo render a subtemplate passed in as a link, use a link tag:\n\n    <div>\n        {@main}\n    </div>\n    \n#### Comment Tags ####\n\nComments can be inserted into the template using comment tags:\n\n    {# Basic Tag Example #}\n    The quick, brown {animal} jumped over the lazy dogs.\n\n\n### Sections ###\n\nSections are blocks of the template that are rendered together.\n\n#### Basic Sections ####\n\nA basic section is defined as follows:\n\n    {:foo}This is a section.{/foo}\n    \nThe output of the section depends on the value of foo. If `foo` is a boolean,\nthe section will either be included or omitted depending on `foo`'s truthiness.\nIf `foo` is an array, then the section will be rendered once for each element\nof `foo`, with the value of the element as the new context. So, for example,\nif `foo` was equal to the array `[{name: 'John'}, {name: 'Jane'}]`, then\n\n    {:foo}\n    Hi, my name is {name}.\n    {/foo}\n    \nwould be rendered as:\n\n    Hi, my name is John.\n    Hi, my name is Jane.\n    \nIf the section is rendered with a object instead of an array, the section\nwill be rendered once with that object serving as the context. Finally,\nif the section is a function, the function will be called with its first\nargument given as the raw text of the section, and the return value will\nreplace the section.\n\n#### Inverted Sections ####\n\nInverted sections are like normal sections, except that the section will\nonly be rendered if the value is false or the given array is empty:\n\n    {!foo}\n    The foo value was false.\n    {/foo}\n    \n\nAcknowledgements\n----------------\n\nThis module owes much of its design and inspiration to Mustache.","maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]},"0.5.9":{"name":"wings","version":"0.5.9","description":"Templating library that works on the server and client closely modeled on Mustache","keywords":["ender","template","mustache","html"],"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"},"url":"http://github.com/amccollum/wings","repositories":[{"type":"git","url":"http://github.com/amccollum/wings.git"}],"licenses":[{"type":"MIT","url":"http://opensource.org/licenses/mit-license.php"}],"main":"lib/wings.js","ender":"lib/ender.js","directories":{"lib":"lib"},"devDependencies":{"coffee-script":"*","ender":"*","ender-vows":"*"},"readme":"{ Wings }\n=========\n\n_Wings_ is a logic-less templating library that works on the server and client.\nIt is based on [Mustache](http://mustache.github.com/), but the syntax is less\nverbose and a few advanced features are sacrificed for small code size\n(0.75kb compressed!).\n\nUsage\n-----\n\nThe module exposes a single function,\n`wings.renderTemplate(template, data, links)`. When used with\n[Ender](http://ender.no.de), this function is aliased as `$.render`, which can\nalso be called on selected elements. In the latter case, the function takes\ntwo arguments, and the contents of the element will be rendered as the\ntemplate and returned.\n\nSyntax\n------\n\nThe syntax of Wings can be broken down into two broad categories:\ntags and sections.\n\n### Tags ###\n\nTags are how values are inserted into the template.\n\n#### Basic Tags ####\n\nA single value can be interpolated into the template by just surrounding it\nwith curly braces:\n\n    The quick, brown {animal} jumped over the lazy dogs.\n    \nHere, the value of `animal` in the current context will inserted into the\nsentence where the tag `{animal}` appears.\n\n#### Raw Tags ####\n\nIn the above example, HTML-unsafe characters will be escaped, to prevent this\nbehavior, use a raw text tag:\n\n    <a href=\"{&url}\">{text}</a>\n    \nThe value of `url` will not be escaped.\n\n#### Link Tags ####\n\nTo render a subtemplate passed in as a link, use a link tag:\n\n    <div>\n        {@main}\n    </div>\n    \n#### Comment Tags ####\n\nComments can be inserted into the template using comment tags:\n\n    {# Basic Tag Example #}\n    The quick, brown {animal} jumped over the lazy dogs.\n\n\n### Sections ###\n\nSections are blocks of the template that are rendered together.\n\n#### Basic Sections ####\n\nA basic section is defined as follows:\n\n    {:foo}This is a section.{/foo}\n    \nThe output of the section depends on the value of foo. If `foo` is a boolean,\nthe section will either be included or omitted depending on `foo`'s truthiness.\nIf `foo` is an array, then the section will be rendered once for each element\nof `foo`, with the value of the element as the new context. So, for example,\nif `foo` was equal to the array `[{name: 'John'}, {name: 'Jane'}]`, then\n\n    {:foo}\n    Hi, my name is {name}.\n    {/foo}\n    \nwould be rendered as:\n\n    Hi, my name is John.\n    Hi, my name is Jane.\n    \nIf the section is rendered with a object instead of an array, the section\nwill be rendered once with that object serving as the context. Finally,\nif the section is a function, the function will be called with its first\nargument given as the raw text of the section, and the return value will\nreplace the section.\n\n#### Inverted Sections ####\n\nInverted sections are like normal sections, except that the section will\nonly be rendered if the value is false or the given array is empty:\n\n    {!foo}\n    The foo value was false.\n    {/foo}\n    \n\nAcknowledgements\n----------------\n\nThis module owes much of its design and inspiration to Mustache.","readmeFilename":"README.md","_id":"wings@0.5.9","dist":{"shasum":"889202c932ab69ace843a40f4753392225e49fc0","tarball":"https://registry.npmjs.org/wings/-/wings-0.5.9.tgz","integrity":"sha512-V2KEGVFW0AYWrC/AzbuZGZcU/0CHK4gyMQWP3n+qBtOCldmwbTnpFwH2yv69Vo/0v1vZjsCBW3Q4flMhmMnQLQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm95q4mRCejaO/QOC0wXN2GQc7zDzeAdEocmGJdTdPxgIhAK/5Uxl+1WNKtqv3EZVOUn1LyCl73brNzO4qmNJagTK4"}]},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"amccollum","email":"amccollum+npm@gmail.com"},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}]}},"maintainers":[{"name":"amccollum","email":"amccollum+npm@gmail.com"}],"time":{"modified":"2022-06-29T02:16:13.934Z","created":"2011-09-06T16:14:25.824Z","0.1.0":"2011-09-06T16:14:26.212Z","0.3.0":"2011-10-04T01:12:55.286Z","0.4.0":"2011-10-04T17:16:55.248Z","0.5.0":"2011-10-04T18:16:12.874Z","0.5.1":"2011-10-04T18:34:38.490Z","0.5.2":"2011-10-04T18:51:26.380Z","0.5.3":"2011-10-04T19:06:03.520Z","0.5.4":"2011-10-04T19:21:31.751Z","0.5.5":"2011-10-07T02:25:51.988Z","0.5.6":"2011-11-19T18:59:25.733Z","0.5.7":"2012-04-26T15:00:24.868Z","0.5.8":"2012-06-06T02:29:51.976Z","0.5.9":"2013-08-19T04:10:51.614Z"},"author":{"name":"Andrew McCollum","email":"amccollum@gmail.com"}}