{"_id":"ampersand-virtual-dom-mixin","_rev":"25-f7a10aad50d33d6981972a851420659e","name":"ampersand-virtual-dom-mixin","description":"## *NOTE:* this module is intentially at 0.x.x since the public api is still under discussion. minor/patch releases may be breaking changes until 1.0.0 hits. _Community feedback wanted_","dist-tags":{"latest":"0.2.4"},"versions":{"0.1.0":{"name":"ampersand-virtual-dom-mixin","version":"0.1.0","dependencies":{"amp-is-string":"^1.0.0","html-parse-stringify":"^1.0.1","virtual-dom":"0.0.23"},"license":"ISC","main":"mixin.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"8600f4e1d19f53570abea14e555caaafd74a7867","description":"```js var vdomMixin = require('ampersand-virtual-dom-mixin'); var View = require('ampersand-view');","_id":"ampersand-virtual-dom-mixin@0.1.0","_shasum":"97ed7514873650717a0eb001f863ba89451e0dbe","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"latentflip","email":"phil@latentflip.com"}],"dist":{"shasum":"97ed7514873650717a0eb001f863ba89451e0dbe","tarball":"https://registry.npmjs.org/ampersand-virtual-dom-mixin/-/ampersand-virtual-dom-mixin-0.1.0.tgz","integrity":"sha512-PJRz/AaQODgITn3hGdtFrbIM1sAl6uvdrmYa0kTUacK6rMe4ovw0dwuNbkRJxv1avTw6VrUjNupAgkjP5haOhg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcxijl7Z75kvAqwiZeDXGsrForURWjr4yL9aODHQzNWgIhAOLVm1r51wBsvbZubzhgrQOmjhOL/y2Zmdnkkak97Lbe"}]},"directories":{}},"0.1.1":{"name":"ampersand-virtual-dom-mixin","version":"0.1.1","dependencies":{"amp-is-string":"^1.0.0","html-parse-stringify":"^1.0.1","virtual-dom":"0.0.23"},"license":"ISC","main":"mixin.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"gitHead":"39270cab02ac0d7bbe997ec34aed544c81920408","description":"```js var vdomMixin = require('ampersand-virtual-dom-mixin'); var View = require('ampersand-view');","_id":"ampersand-virtual-dom-mixin@0.1.1","_shasum":"38926123ae14509f4927cb7d0f5ea69bfc406731","_from":".","_npmVersion":"2.1.5","_nodeVersion":"0.10.30","_npmUser":{"name":"henrikjoreteg","email":"henrik@andyet.net"},"maintainers":[{"name":"latentflip","email":"phil@latentflip.com"},{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"dist":{"shasum":"38926123ae14509f4927cb7d0f5ea69bfc406731","tarball":"https://registry.npmjs.org/ampersand-virtual-dom-mixin/-/ampersand-virtual-dom-mixin-0.1.1.tgz","integrity":"sha512-sj13jivaEGn6vXGZ683gMaPyiFqkZeRTzAwPEcvjgnAEr2QiD69qoEFk4Jyeob6sn5l1UiNkmcBhUGTptLs6nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDu3cHII8SAmtOY14uaik0oNMyXXwMDS71WQJlVVzzKkQIgaZ4VA+hYrnG0J0IhZNY0Bh+THFOacutUJr2DrDVb85U="}]},"directories":{}},"0.1.2":{"name":"ampersand-virtual-dom-mixin","version":"0.1.2","dependencies":{"amp-is-string":"^1.0.0","html-parse-stringify":"^1.0.1","virtual-dom":"0.0.23"},"license":"ISC","main":"mixin.js","scripts":{},"gitHead":"00cb67d451117ed72dc93515009f6dc03785f090","description":"```js var vdomMixin = require('ampersand-virtual-dom-mixin'); var View = require('ampersand-view');","_id":"ampersand-virtual-dom-mixin@0.1.2","_shasum":"685a554791f0544137f5e34b948c8e64d58f6be8","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"latentflip","email":"phil@latentflip.com"},{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"dist":{"shasum":"685a554791f0544137f5e34b948c8e64d58f6be8","tarball":"https://registry.npmjs.org/ampersand-virtual-dom-mixin/-/ampersand-virtual-dom-mixin-0.1.2.tgz","integrity":"sha512-jYCVPAOTt2p3i/r79uNszCcOJDyo5oErofAaFt+a0RiJeXX4nFEOYduGzxFDV3rpi0QD3fZO+G7YpdQyfAr+PA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDFJWScGJQS56GNdFMDidY87lGsf2i1K6oDM80Y22KTpAiEAwDTpnWwBBDEcaerv+gIgBvp2DKh8mu6ciat2JEnqYoc="}]},"directories":{}},"0.2.0":{"name":"ampersand-virtual-dom-mixin","version":"0.2.0","dependencies":{"amp-is-string":"^1.0.0","get-object-path":"0.0.2","html-parse-stringify":"^1.0.1","virtual-dom":"0.0.23"},"license":"ISC","main":"mixin.js","scripts":{"start":"run-browser test/index.js","test":"browserify test/index.js | tape-run | tap-spec","demo":"beefy demo.js"},"devDependencies":{"ampersand-view":"^7.2.0","beefy":"^2.1.2","browserify":"^8.1.0","jshint":"^2.5.11","phantomjs":"^1.9.13","precommit-hook":"^1.0.7","run-browser":"^2.0.1","tap-spec":"^2.1.2","tape":"^3.0.3","tape-run":"^0.3.0"},"gitHead":"5e2889cc083bfc926b85784ddd4cdce4fd0c7077","description":"## *NOTE:* this module is intentially at 0.x.x since the public api is still under discussion. minor/patch releases may be breaking changes until 1.0.0 hits. _Community feedback wanted_","_id":"ampersand-virtual-dom-mixin@0.2.0","_shasum":"2ac4e4a45c6e095da9e13bb2afea915586a19927","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.33","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"latentflip","email":"phil@latentflip.com"},{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"dist":{"shasum":"2ac4e4a45c6e095da9e13bb2afea915586a19927","tarball":"https://registry.npmjs.org/ampersand-virtual-dom-mixin/-/ampersand-virtual-dom-mixin-0.2.0.tgz","integrity":"sha512-BFeIAMTK60kx+iQkyafBcr5psBpXwEj4Rob7EZHCxITQ6BZqDqXueXzoX/91CWAIYqvpH0obTA6X/bj4RDez2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICjKTrWhkZU6RWe2m6qjZuTM2/J31sqAJKhzMGDvosQDAiA72MdMw1dni4TsKVBdCLfULCwWFvu44kPqjwUasucOaw=="}]},"directories":{}},"0.2.1":{"name":"ampersand-virtual-dom-mixin","version":"0.2.1","dependencies":{"amp-is-string":"^1.0.0","get-object-path":"0.0.2","html-parse-stringify":"^1.0.1","virtual-dom":"0.0.23"},"license":"ISC","main":"mixin.js","scripts":{"start":"run-browser test/index.js","test":"browserify test/index.js | tape-run | tap-spec","demo":"beefy demo.js"},"devDependencies":{"ampersand-view":"^7.2.0","beefy":"^2.1.2","browserify":"^8.1.0","jshint":"^2.5.11","phantomjs":"^1.9.13","precommit-hook":"^1.0.7","run-browser":"^2.0.1","tap-spec":"^2.1.2","tape":"^3.0.3","tape-run":"^0.3.0"},"gitHead":"cb7cc9226ffb680c1a45aef14051609235701213","description":"## *NOTE:* this module is intentially at 0.x.x since the public api is still under discussion. minor/patch releases may be breaking changes until 1.0.0 hits. _Community feedback wanted_","_id":"ampersand-virtual-dom-mixin@0.2.1","_shasum":"078b114e4e9009136dd273395d2519adde508fd9","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.33","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"latentflip","email":"phil@latentflip.com"},{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"dist":{"shasum":"078b114e4e9009136dd273395d2519adde508fd9","tarball":"https://registry.npmjs.org/ampersand-virtual-dom-mixin/-/ampersand-virtual-dom-mixin-0.2.1.tgz","integrity":"sha512-6zh/5VaxaymJGVQdMsFXHNB2z5d+uidsZ+h9mOkITL5PRmJu/z7zX2k8lFD5i0ogsJfbA3hoYGchy0FndoY6LA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjqdY9A4HJCF/LZubhn05NRv9aXX6ncAwzTVzCwLhPoAIgODiRxhjV/0gox43jaoGn4+V20fs7ogbzWWYTEEts8mo="}]},"directories":{}},"0.2.2":{"name":"ampersand-virtual-dom-mixin","version":"0.2.2","dependencies":{"amp-is-string":"^1.0.0","get-object-path":"0.0.2","html-parse-stringify":"1.0.1","virtual-dom":"0.0.23"},"license":"ISC","main":"mixin.js","scripts":{"start":"run-browser test/index.js","test":"browserify test/index.js | tape-run | tap-spec","demo":"beefy demo.js"},"devDependencies":{"ampersand-view":"^7.2.0","beefy":"^2.1.2","browserify":"^8.1.0","jshint":"^2.5.11","phantomjs":"^1.9.13","precommit-hook":"^1.0.7","run-browser":"^2.0.1","tap-spec":"^2.1.2","tape":"^3.0.3","tape-run":"^0.3.0"},"gitHead":"20acca5249779cfb4c4ad06aa4e78542d41d15b2","description":"## *NOTE:* this module is intentially at 0.x.x since the public api is still under discussion. minor/patch releases may be breaking changes until 1.0.0 hits. _Community feedback wanted_","_id":"ampersand-virtual-dom-mixin@0.2.2","_shasum":"ef7a68691c6724b5401505e02389002e6cb5c8f9","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.33","_npmUser":{"name":"latentflip","email":"phil@latentflip.com"},"maintainers":[{"name":"latentflip","email":"phil@latentflip.com"},{"name":"henrikjoreteg","email":"henrik@andyet.net"}],"dist":{"shasum":"ef7a68691c6724b5401505e02389002e6cb5c8f9","tarball":"https://registry.npmjs.org/ampersand-virtual-dom-mixin/-/ampersand-virtual-dom-mixin-0.2.2.tgz","integrity":"sha512-fMdry39g5arBun2nyPOn0gxPy3HLAT/eoRiH4dTa/jn1Ifa6INJTUtrrxcZ/ctlgu2hWrQLebTvq7WLyfHselg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzCqQcv2ZKitj6mgfIq+v0r8RTYGUFWNY0rmFbri9Z8wIhAM79oeYzGFdG1muPJluTXahra5S5zkzzMTYMn3ZIExHN"}]},"directories":{}},"0.2.3":{"name":"ampersand-virtual-dom-mixin","version":"0.2.3","repository":{"type":"git","url":"https://github.com/AmpersandJS/ampersand-virtual-dom-mixin"},"dependencies":{"get-object-path":"0.0.2","html-parse-stringify":"1.0.1","lodash.isstring":"^3.0.1","virtual-dom":"0.0.23"},"license":"ISC","main":"mixin.js","scripts":{"start":"run-browser test/index.js","test":"browserify test/index.js | tape-run | tap-spec","demo":"beefy demo.js"},"devDependencies":{"ampersand-view":"^7.2.0","beefy":"^2.1.2","browserify":"^8.1.0","jshint":"^2.5.11","phantomjs":"^1.9.13","precommit-hook":"^1.0.7","run-browser":"^2.0.1","tap-spec":"^2.1.2","tape":"^3.0.3","tape-run":"^0.3.0"},"gitHead":"1623e11a828c1019108d16ef6f308a6ecd735f4e","description":"## *NOTE:* this module is intentially at 0.x.x since the public api is still under discussion. minor/patch releases may be breaking changes until 1.0.0 hits. _Community feedback wanted_","bugs":{"url":"https://github.com/AmpersandJS/ampersand-virtual-dom-mixin/issues"},"homepage":"https://github.com/AmpersandJS/ampersand-virtual-dom-mixin","_id":"ampersand-virtual-dom-mixin@0.2.3","_shasum":"287fd146291f86772a85a8ba4268189153fb1c45","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.10.35","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"latentflip","email":"phil@latentflip.com"},{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"287fd146291f86772a85a8ba4268189153fb1c45","tarball":"https://registry.npmjs.org/ampersand-virtual-dom-mixin/-/ampersand-virtual-dom-mixin-0.2.3.tgz","integrity":"sha512-fPBerRg66ir5H7Zl+sGPNXC+QvHmi6zDlAoa9i/mSrD8kpY46u6ZqJs/v6Mz2lzqOu67nG2icB3qgHMuEqHw5Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDcSnVLTaQHpqwWGEHIcqZvSBf3B3sWy5+7XTrTXZJGxAiEA3fmHHlPNBkMJ7CMvLiYZzVFEevbbD49LAI3F/lKDVds="}]},"directories":{}},"0.2.4":{"name":"ampersand-virtual-dom-mixin","version":"0.2.4","repository":{"type":"git","url":"https://github.com/AmpersandJS/ampersand-virtual-dom-mixin"},"dependencies":{"get-object-path":"0.0.2","html-parse-stringify":"1.0.1","lodash.isstring":"^3.0.1","virtual-dom":"^2.0.1"},"license":"ISC","main":"mixin.js","scripts":{"start":"run-browser test/index.js","test":"browserify test/index.js | tape-run | tap-spec","demo":"beefy demo.js"},"devDependencies":{"ampersand-view":"^7.2.0","beefy":"^2.1.2","browserify":"^8.1.0","jshint":"^2.5.11","phantomjs":"^1.9.13","precommit-hook":"^1.0.7","run-browser":"^2.0.1","tap-spec":"^2.1.2","tape":"^3.0.3","tape-run":"^1.0.0"},"gitHead":"512bc9725c137cfec6356598919c6874e55b3ad9","description":"## *NOTE:* this module is intentially at 0.x.x since the public api is still under discussion. minor/patch releases may be breaking changes until 1.0.0 hits. _Community feedback wanted_","bugs":{"url":"https://github.com/AmpersandJS/ampersand-virtual-dom-mixin/issues"},"homepage":"https://github.com/AmpersandJS/ampersand-virtual-dom-mixin","_id":"ampersand-virtual-dom-mixin@0.2.4","_shasum":"8e65f77b9ffae1a163470033e199797da5185c54","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.10.35","_npmUser":{"name":"lukekarrys","email":"luke@lukekarrys.com"},"maintainers":[{"name":"latentflip","email":"phil@latentflip.com"},{"name":"henrikjoreteg","email":"henrik@andyet.net"},{"name":"lukekarrys","email":"luke@lukekarrys.com"}],"dist":{"shasum":"8e65f77b9ffae1a163470033e199797da5185c54","tarball":"https://registry.npmjs.org/ampersand-virtual-dom-mixin/-/ampersand-virtual-dom-mixin-0.2.4.tgz","integrity":"sha512-PGav/+7GObf1vbtPacXmN+jcGxdwAEJ6XKPSA0MMTX81j/u7ATmmVk5dDxnOGsjERcBVcO0atbpyWwcQ+8x+Rw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+aSDrtwiLIK9zrhCsGxIH1pJQa82UX9xYQAwNMIdn0QIgbJFKEzbAydk8ljqyAgrHW7e/uzylC2Vjxnx7/2lJfzo="}]},"directories":{}}},"readme":"# ampersand-virtual-dom-mixin\n\n## *NOTE:* this module is intentially at 0.x.x since the public api is still under discussion. minor/patch releases may be breaking changes until 1.0.0 hits. _Community feedback wanted_\n\n```js\nvar vdomMixin = require('ampersand-virtual-dom-mixin');\nvar View = require('ampersand-view');\n\nvar MyView = View.extend(vdomMixin, {\n    template: require('my-template.jade'), //if useing jadeify, or whatever\n\n    initialize: function () {\n        //you just need to trigger render when things change,\n        //the simplest might be:\n\n        this.on('change', this.render);\n    }\n});\n```\n\n## Notes on usage of this version:\n\n* There's a demo.js in the repo `npm run demo`, http://localhost:9967\n* Rendering subviews manually in an overridden render method is an anti-pattern with this mixin. You'll want to use the `subviews` hash to do so declaratively.\n* This enables you in a template to render/remove the target el for a subview, and that el will be created/torn down appropriately.\n* This mixin rewrites `_parseSubview`. The prepareView function will no longer receive an `el`, so rendered subviews will be appended to, rather than replace, the selected el.\n* component rendering has been removed, for now.\n","maintainers":[{"email":"giladp007@gmail.com","name":"pgilad"},{"email":"fyockm@gmail.com","name":"fyockm"},{"email":"henrik@joreteg.com","name":"henrikjoreteg"},{"email":"phil@latentflip.com","name":"latentflip"}],"time":{"modified":"2022-06-13T02:46:20.973Z","created":"2014-12-13T18:16:41.527Z","0.1.0":"2014-12-13T18:16:41.527Z","0.1.1":"2014-12-14T19:08:07.188Z","0.1.2":"2014-12-14T22:11:47.061Z","0.2.0":"2015-01-20T17:33:10.837Z","0.2.1":"2015-02-05T17:13:14.338Z","0.2.2":"2015-03-19T18:38:45.591Z","0.2.3":"2015-04-01T20:29:39.780Z","0.2.4":"2015-04-01T20:30:37.702Z"},"license":"ISC","readmeFilename":"README.md","homepage":"https://github.com/AmpersandJS/ampersand-virtual-dom-mixin","repository":{"type":"git","url":"https://github.com/AmpersandJS/ampersand-virtual-dom-mixin"},"bugs":{"url":"https://github.com/AmpersandJS/ampersand-virtual-dom-mixin/issues"},"users":{"nichoth":true}}