{"_id":"grunt-html-inheritance","_rev":"42-e6f5283ed7754fa5e784cee33eb9839c","name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","dist-tags":{"latest":"0.1.11"},"versions":{"0.1.0":{"name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","version":"0.1.0","homepage":"https://github.com/askladchikov/grunt-template-inherit","author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"repository":{"type":"git","url":"git://github.com/askladchikov/grunt-template-inherit.git"},"bugs":{"url":"https://github.com/askladchikov/grunt-template-inherit/issues"},"licenses":[{"type":"MIT","url":"https://github.com/askladchikov/grunt-template-inherit/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"cheerio":"0.13.1","grunt-contrib-clean":"*","grunt-contrib-nodeunit":"^0.3.3","grunt":"~0.4.4"},"peerDependencies":{"grunt":"~0.4.4"},"keywords":["gruntplugin","html","inheritance","template"],"_id":"grunt-html-inheritance@0.1.0","dist":{"shasum":"63c566d44cacb54d81eeadeaa804a7a7afac0710","tarball":"https://registry.npmjs.org/grunt-html-inheritance/-/grunt-html-inheritance-0.1.0.tgz","integrity":"sha512-81XO5w52oSriKLv84vHzGGnyiy2UbuMWydeEULgMYb9C+KZLBWX4zcDyJbSh/XwIdQLHOBzhGQegEL3NDCZF1g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF9lKCB8b/fSKUyuALThc+JMbDpUrO0PKgvtZmeERxVEAiBq8UmjGFB/XfImx9esDn+1MfpABh/rGZyeDpBxHteTJw=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"huston007","email":"andrey.skladchikov@gmail.com"},"maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}]},"0.1.1":{"name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","version":"0.1.1","homepage":"https://github.com/huston007/grunt-html-inheritance","author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"repository":{"type":"git","url":"git://github.com/huston007/grunt-html-inheritance.git"},"bugs":{"url":"https://github.com/huston007/grunt-html-inheritance/issues"},"licenses":[{"type":"MIT","url":"https://github.com/huston007/grunt-html-inheritance/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"cheerio":"0.13.1","grunt":"~0.4.4"},"peerDependencies":{"grunt":"~0.4.4"},"keywords":["gruntplugin","html","inheritance","template"],"_id":"grunt-html-inheritance@0.1.1","dist":{"shasum":"9cf530b9adcc5e4e3acc7ed734936cdd1f5e1877","tarball":"https://registry.npmjs.org/grunt-html-inheritance/-/grunt-html-inheritance-0.1.1.tgz","integrity":"sha512-NKvlYZE4XHkcXrXg2D9gsfdFa0pDOnXKddqy7Xxei87cXh9jlMJCVgE3d7yjjGoEAB6XubfYg5UQdzR5dkhI+w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDLDGKZcPeRtCyIvaefww3UpHWZ6NTCYrl9HFu5BjgywIhANUFpAgXveRr14REaSHW01pe0EO7Nr3kMxX5Pk+MSVXG"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"huston007","email":"andrey.skladchikov@gmail.com"},"maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}]},"0.1.2":{"name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","version":"0.1.2","homepage":"https://github.com/huston007/grunt-html-inheritance","author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"repository":{"type":"git","url":"git://github.com/huston007/grunt-html-inheritance.git"},"bugs":{"url":"https://github.com/huston007/grunt-html-inheritance/issues"},"licenses":[{"type":"MIT","url":"https://github.com/huston007/grunt-html-inheritance/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"cheerio":"0.13.1","grunt":"~0.4.4"},"peerDependencies":{"grunt":"~0.4.4"},"keywords":["gruntplugin","html","inheritance","template"],"_id":"grunt-html-inheritance@0.1.2","dist":{"shasum":"81d42a9e447b4bc14591b6d880d7d1101b415b72","tarball":"https://registry.npmjs.org/grunt-html-inheritance/-/grunt-html-inheritance-0.1.2.tgz","integrity":"sha512-+194XsxxsTWhbXw+31bFzb/KkXtjZwK3KYXdKEZHg5XY0teVJOI5fybaZ8JXvIo1tKiTe2XnZBJApBYjvYXDeA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCRiya2zYOmEFWyDqKs8KtSxL9Dlx9kZxfaKpR9vLgxwwIhANtwObswFCzX0L3U63+GZUnibqSC+/vkGfmt5vBHM9Wt"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"huston007","email":"andrey.skladchikov@gmail.com"},"maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}]},"0.1.3":{"name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","version":"0.1.3","homepage":"https://github.com/huston007/grunt-html-inheritance","author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"repository":{"type":"git","url":"git://github.com/huston007/grunt-html-inheritance.git"},"bugs":{"url":"https://github.com/huston007/grunt-html-inheritance/issues"},"licenses":[{"type":"MIT","url":"https://github.com/huston007/grunt-html-inheritance/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"cheerio":"0.13.1","grunt":"~0.4.4"},"peerDependencies":{"grunt":"~0.4.4"},"keywords":["gruntplugin","html","inheritance","template"],"_id":"grunt-html-inheritance@0.1.3","dist":{"shasum":"fc043cdb2a0fa47890ae58b7dda8482e235bf611","tarball":"https://registry.npmjs.org/grunt-html-inheritance/-/grunt-html-inheritance-0.1.3.tgz","integrity":"sha512-eHap+eiPzrbq6ugpCQsxeeukZqtzjMzgeSbw5hB+KdzUQc7VMf6cBgG/w2ia7jZoFhsBsy6KfYaBuxPWJcA4tw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBqHW9KJTTem3Ka/jtbi5fzSUHymZHT0j10yfIa8bIfLAiEAw4y6dUb7IiEGJkffiJ94EFKCPJXXRxvaSjdtaWfe0bk="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"huston007","email":"andrey.skladchikov@gmail.com"},"maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}]},"0.1.4":{"name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","version":"0.1.4","homepage":"https://github.com/huston007/grunt-html-inheritance","author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"repository":{"type":"git","url":"git://github.com/huston007/grunt-html-inheritance.git"},"bugs":{"url":"https://github.com/huston007/grunt-html-inheritance/issues"},"licenses":[{"type":"MIT","url":"https://github.com/huston007/grunt-html-inheritance/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"cheerio":"0.13.1","grunt":"~0.4.4"},"peerDependencies":{"grunt":"~0.4.4"},"keywords":["gruntplugin","html","inheritance","template"],"_id":"grunt-html-inheritance@0.1.4","dist":{"shasum":"698a6a9747325df1593f56ba5b915649e28ccdce","tarball":"https://registry.npmjs.org/grunt-html-inheritance/-/grunt-html-inheritance-0.1.4.tgz","integrity":"sha512-dArqehCGLYOAg3C9UkKXF18g+bHqJnAPLzTmkMxc1CuC2nhVeAlR+aQw3hR0HMHv0SQI9ry/snDKFbkw5Q0jCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8aa5mR8TsGlHFGRdXDACiaSqLN2QmIhXZLMzWH3UfeAIhAKHfWpH31fJ8NucAWyRlE3PEj5eLxPlCCXm90xP2F6uc"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"huston007","email":"andrey.skladchikov@gmail.com"},"maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}]},"0.1.5":{"name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","version":"0.1.5","homepage":"https://github.com/huston007/grunt-html-inheritance","author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"repository":{"type":"git","url":"git://github.com/huston007/grunt-html-inheritance.git"},"bugs":{"url":"https://github.com/huston007/grunt-html-inheritance/issues"},"licenses":[{"type":"MIT","url":"https://github.com/huston007/grunt-html-inheritance/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.4"},"peerDependencies":{"grunt":"~0.4.4","cheerio":"0.13.1"},"keywords":["gruntplugin","html","inheritance","template"],"_id":"grunt-html-inheritance@0.1.5","dist":{"shasum":"3b4574ce716a903431cde75ab272e4034f270981","tarball":"https://registry.npmjs.org/grunt-html-inheritance/-/grunt-html-inheritance-0.1.5.tgz","integrity":"sha512-XYmV29jAHfc0uYR703L33+8u+KsQVQlFYdmTLO3Y3rQ/Xc9jBKHyjAwu/S1FvKs1ewU0m2DTkOtr6Qd3PObRrQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDJh0wsUzhu7FfFTT/RhEudUVySvejr0DUDCKtY3AK2dAiA12NejJd74km3W6hvGApBOUYFsxp0r5LkdgppoZQRI0A=="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"huston007","email":"andrey.skladchikov@gmail.com"},"maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}]},"0.1.7":{"name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","version":"0.1.7","homepage":"https://github.com/huston007/grunt-html-inheritance","author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"repository":{"type":"git","url":"git://github.com/huston007/grunt-html-inheritance.git"},"bugs":{"url":"https://github.com/huston007/grunt-html-inheritance/issues"},"licenses":[{"type":"MIT","url":"https://github.com/huston007/grunt-html-inheritance/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.4","cheerio":"0.13.1","nodeunit":"*","grunt-contrib-nodeunit":"*","grunt-contrib-clean":"*","grunt-debug-task":"*"},"peerDependencies":{"grunt":"~0.4.4","cheerio":"0.13.1"},"keywords":["gruntplugin","html","inheritance","template"],"_id":"grunt-html-inheritance@0.1.7","dist":{"shasum":"462b5f35ce9b940345e4f2197aacfe7b14ec1278","tarball":"https://registry.npmjs.org/grunt-html-inheritance/-/grunt-html-inheritance-0.1.7.tgz","integrity":"sha512-4XcJYkCHi852YJ32K8aEqRNx8bapQk/jnv4MbFUOhuray/pDFTYKj3qxeRUOK4HbuBc+pEpBn1z/fF/EZOBJWA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFUo/733u97bLCrdhuWok9gSVQKkbQMwiu5EGNnmpE3fAiEA2dEqqRmQ1I0gCoIA0I05z2i3vP7r/2H0DoX522qaoDk="}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"huston007","email":"andrey.skladchikov@gmail.com"},"maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}]},"0.1.8":{"name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","version":"0.1.8","homepage":"https://github.com/huston007/grunt-html-inheritance","author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"repository":{"type":"git","url":"git://github.com/huston007/grunt-html-inheritance.git"},"bugs":{"url":"https://github.com/huston007/grunt-html-inheritance/issues"},"licenses":[{"type":"MIT","url":"https://github.com/huston007/grunt-html-inheritance/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.4","cheerio":"0.13.1","nodeunit":"*","grunt-contrib-nodeunit":"*","grunt-contrib-clean":"*","grunt-debug-task":"*"},"peerDependencies":{"grunt":"~0.4.4","cheerio":"0.13.1"},"keywords":["gruntplugin","html","inheritance","template"],"_id":"grunt-html-inheritance@0.1.8","dist":{"shasum":"e76914e9a0ea0d678d9113c5792cdd9486e90587","tarball":"https://registry.npmjs.org/grunt-html-inheritance/-/grunt-html-inheritance-0.1.8.tgz","integrity":"sha512-Jq4ImdZQke1hhZmZlVj/x1LiOZZFOiwxPS6xg9hSEHKx2GvnA+WQXMeIfE/z/Dx6PelJtROxh2x/vfaWLF1JJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDj2p7UZq5LO+ms8HH729OrUAd0zixzUWbCRMyusefGAIhALl2tDBxpbxlVsUaGO8pqOTb0lXSCdvGLYIjBKWimOE1"}]},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"huston007","email":"andrey.skladchikov@gmail.com"},"maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}]},"0.1.9":{"name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","version":"0.1.9","homepage":"https://github.com/huston007/grunt-html-inheritance","author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"repository":{"type":"git","url":"git://github.com/huston007/grunt-html-inheritance.git"},"bugs":{"url":"https://github.com/huston007/grunt-html-inheritance/issues"},"licenses":[{"type":"MIT","url":"https://github.com/huston007/grunt-html-inheritance/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.4","cheerio":"0.13.1","nodeunit":"*","grunt-contrib-nodeunit":"*","grunt-contrib-clean":"*","grunt-debug-task":"*"},"peerDependencies":{"grunt":"~0.4.4","cheerio":"0.13.1"},"keywords":["gruntplugin","html","inheritance","template"],"gitHead":"22be986c06ce78a4e0d9cc4270924657359197df","_id":"grunt-html-inheritance@0.1.9","_shasum":"904d016ac0f2b2df4af1fd58d45c75abf1992cde","_from":".","_npmVersion":"1.4.18","_npmUser":{"name":"huston007","email":"andrey.skladchikov@gmail.com"},"maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}],"dist":{"shasum":"904d016ac0f2b2df4af1fd58d45c75abf1992cde","tarball":"https://registry.npmjs.org/grunt-html-inheritance/-/grunt-html-inheritance-0.1.9.tgz","integrity":"sha512-fhfCqRJxpFKQ3u6AnEeJdKZyFGO9tMnvBjjbS9t2hJ4AUMHzxv0g8dAlmHuihmjca2vQBHBRadxgfRE0utOQFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDm4RiohOVvr6n4/05pet8cyA48bIbNYZBkRaCV3mkQRwIhAIv0UI7MZBeAQ3TaxzOw4uPyGeapvl5Ss5bksTM37lhM"}]}},"0.1.10":{"name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","version":"0.1.10","homepage":"https://github.com/huston007/grunt-html-inheritance","author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"repository":{"type":"git","url":"git://github.com/huston007/grunt-html-inheritance.git"},"bugs":{"url":"https://github.com/huston007/grunt-html-inheritance/issues"},"licenses":[{"type":"MIT","url":"https://github.com/huston007/grunt-html-inheritance/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.4","cheerio":"*","nodeunit":"*","grunt-contrib-nodeunit":"*","grunt-contrib-clean":"*","grunt-debug-task":"*"},"peerDependencies":{"grunt":"~0.4.4","cheerio":"*"},"keywords":["gruntplugin","html","inheritance","template"],"gitHead":"b4ea1632dfbb930067f311b849ce9935315f2f66","_id":"grunt-html-inheritance@0.1.10","_shasum":"794e77b3d0dc386289e1be2f9bd47a866a499e22","_from":".","_npmVersion":"1.4.18","_npmUser":{"name":"huston007","email":"andrey.skladchikov@gmail.com"},"maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}],"dist":{"shasum":"794e77b3d0dc386289e1be2f9bd47a866a499e22","tarball":"https://registry.npmjs.org/grunt-html-inheritance/-/grunt-html-inheritance-0.1.10.tgz","integrity":"sha512-b4sOBigfwG8xoqf2/jEgXvYZk/TM97Q1s02/9GhuV/GAfoMOetNiQ2/kfhlc0JTbJL+DYO/LWens3/Q6raX+FQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDqoIWcOTquN5EL69ly4GzEYTyYd6R/14wvnP3KIKlLDwIgYnd9RMlm+f8+lMhpOetnJGsnbCJw9h3k5OwuE60MrAs="}]}},"0.1.11":{"name":"grunt-html-inheritance","description":"The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.","version":"0.1.11","homepage":"https://github.com/huston007/grunt-html-inheritance","author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"repository":{"type":"git","url":"git://github.com/huston007/grunt-html-inheritance.git"},"bugs":{"url":"https://github.com/huston007/grunt-html-inheritance/issues"},"licenses":[{"type":"MIT","url":"https://github.com/huston007/grunt-html-inheritance/blob/master/LICENSE-MIT"}],"engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt":"~0.4.4","cheerio":"*","nodeunit":"*","grunt-contrib-nodeunit":"*","grunt-contrib-clean":"*","grunt-debug-task":"*"},"peerDependencies":{"grunt":"~0.4.4","cheerio":"*"},"keywords":["gruntplugin","html","inheritance","template"],"gitHead":"f90c860ad292a45a281bbf002af7ca7424487016","_id":"grunt-html-inheritance@0.1.11","_shasum":"c54f99f4094a807e9731e0d2555aaa8b57474f85","_from":".","_npmVersion":"1.4.18","_npmUser":{"name":"huston007","email":"andrey.skladchikov@gmail.com"},"maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}],"dist":{"shasum":"c54f99f4094a807e9731e0d2555aaa8b57474f85","tarball":"https://registry.npmjs.org/grunt-html-inheritance/-/grunt-html-inheritance-0.1.11.tgz","integrity":"sha512-UQYxbq23kVanWCx5x6r4gx5WgWLG1M3vr7/fK5P41RTqnPhWm2OkVMgSzL+snBlAEvlotDC2RiGbOtbJFJqKow==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAhRzyAlJ5DRsY0aPOY1683eVilx9xndpWIEPB9WznwIAiEAzESbsO/YByF5gW6wK7SLipod3AC76yiCAYWXAzpOwY4="}]}}},"readme":"# grunt-html-inheritance\r\n\r\n> The engine to build htmls with replacing, inserting or modifing separated tags only using small html patches.\r\n\r\n##The problem\r\n\r\nIn some kinds of single page apps (AngularJS for example) the templates is just small pieces of html code stored in project folder. Sometimes you need to customize this html for different versions of app: main and version for other client, for example. Bad way to customize html is using a lot of IF: if (ver==main) <-- some tags --> else <--other tags-->. \r\n\r\nThis module provide better xslt-like way to customize html files: in main version you place \"business logic attributes\" bl-* in tags you want to customize:\r\n```html\r\n<div bl-mycustomtag>Here is main version</div>\r\n```\r\nAnd then you create child file _file_name._version_name.html, where you customize this tag:\r\n```html\r\n<div bl-mycustomtag=\"replace\">Here is custom version</div>\r\n```\r\n\r\n\r\n## Getting Started\r\nThis plugin requires Grunt `~0.4.4`\r\n\r\nIf you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:\r\n\r\n```shell\r\nnpm install grunt-html-inheritance --save-dev\r\n```\r\n\r\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\r\n\r\n```js\r\ngrunt.loadNpmTasks('grunt-html-inheritance');\r\n```\r\n\r\n### Options\r\n\r\n#### options.modules\r\nType: `Array`\r\n\r\nA array of string described what modules you like to build.\r\n\r\n#### options.dstDir\r\nType: `String`\r\nDefault value: `dist`\r\n\r\nA path to directory to place builded html\r\n\r\n### Usage Examples\r\n\r\n#### Default Options\r\n\r\n```js\r\ngrunt.initConfig({\r\n  html_inheritance: {\r\n      main: {\r\n          files: { \r\n            src:'**.html' //array of files to process or grunt-compatible file selector like '**/*.html'\r\n          },\r\n          options: {\r\n              modules: [\"version1\", \"version2\"], //array of modules you want to build additionall to \"main\"\r\n              dstDir: \"../dist\",\r\n          },\r\n      },\r\n  },\r\n});\r\n```\r\n\r\n##Syntax definition\r\nThe engine have just four modes of inheritance.\r\n\r\n###1. Replace\r\n\r\nOkay. Lets imagine you have main version of your html file \"myfile.html\" with text \"Here is main version\" in a div.\r\n\r\n```html\r\n<div>\r\n\tBlah blah blah\r\n\t<div>Here is main version</div>\r\n</div>\r\n```\r\n\r\nAnd now you want to customize this file for version called \"myver\" to replace target div with other elements. You can create any count of custom versions you want. All what you need is just few steps:\r\n\r\n1. Add business logic attribute to tag you want to customize. Business logic tag starting with \"bl-\":\r\n\r\n```html\r\n<div>\r\n\tBlah blah blah\r\n\t<div bl-mytesttag>Here is main version</div>\r\n</div>\r\n```\r\n\r\n2. Create child file with html patch to you main file. Call it using pattern \"__your_file_name__.__version_name__.html\". In this example name should be \"myfile.myver.html\". Place file in same folder as original file. Define html code to replace main version tag like this:\r\n\r\n```html\r\n<div bl-mytesttag=\"replace\">Here is MYVER version <!--any html here--></div>\r\n```\r\n\r\nThe \"replace\" value of business logic attribute means this div will be replaced by child element\r\n\r\n###2. Remove\r\n\r\nSometimes you need to remove parent element in customized version. You can do it pretty easy:\r\n\r\nMain html not changed:\r\n```html\r\n<div>\r\n\tBlah blah blah\r\n\t<div bl-mytesttag>Here is main version</div>\r\n</div>\r\n```\r\n\r\nChild html:\r\n```html\r\n<div bl-mytesttag=\"remove\"></div>\r\n```\r\n\r\n###3. Insert\r\n\r\nOther case is you want no elements in main version, but custom element in custom version - insert element in any position in custom version.\r\n\r\nIn main html you have to specify that you dont want to see that element in main version using keyword \"removable\":\r\n```html\r\n<div>\r\n\tBlah blah blah\r\n\t<div bl-mytesttag=\"removable\"></div>\r\n</div>\r\n```\r\n\r\nIn child html you inserting your tags to place you defined in main html:\r\n```html\r\n<div bl-mytesttag=\"insert\">Inserted html in MYVER version</div>\r\n```\r\n\r\n###4.Attributes modification\r\n\r\nIn this case you dont want to change parent tag, but you want to add/change/remove some attributes or classes.\r\n\r\nMain html not changed:\r\n```html\r\n<div>\r\n\tBlah blah blah\r\n\t<div bl-mytesttag data-attributetoremove class=\"myClass\">Here is main version</div>\r\n</div>\r\n```\r\n\r\nYou can change attributes and classes in child using \"modify\" keyword and json-like syntax:\r\n\r\n\r\n```html\r\n<div bl-filterblock='modify={\"addattr\":{\"test1\":\"test2\", \"test3\":\"test4\"}, \"removeattr\":\"test1 test2\", \"addclass\":\"testaddedfclass\", \"removeclass\":\"testclass\"}'></div>\r\n```\r\n\r\nLet's see closer to syntax:\r\n\r\n####addattr\r\nAdding attributes with values:\r\n```html\r\n<div bl-filterblock='modify={\"addattr\":{\"test1\":\"test2\", \"test3\":\"test4\"}'></div>\r\n```\r\nThis code will add \"test1\" attribute with \"test2\" value and \"test3\" attribute with \"test4\" value\r\n\r\n####removeattr\r\nRemoving attributes:\r\n```html\r\n<div bl-filterblock='modify={\"removeattr\":\"test1 test2\"}'></div>\r\n```\r\nThis code will remove \"test1\" and \"test2\" attributes\r\n\r\n####addclass\r\nAdding classes:\r\n```html\r\n<div bl-filterblock='modify={\"addclass\":\"testaddedfclass\"}'></div>\r\n```\r\nThis code will remove \"testaddedfclass\" class\r\n\r\n####removeclass\r\nRemoving classes:\r\n```html\r\n<div bl-filterblock='modify={\"removeclass\":\"testclass\"}'></div>\r\n```\r\nThis code will remove \"testclass\" class\r\n\r\n","maintainers":[{"name":"huston007","email":"andrey.skladchikov@gmail.com"}],"time":{"modified":"2022-06-18T15:10:03.597Z","created":"2014-04-24T08:27:49.922Z","0.1.0":"2014-04-24T08:27:52.591Z","0.1.1":"2014-04-24T09:05:16.333Z","0.1.2":"2014-04-24T09:22:30.225Z","0.1.3":"2014-04-24T09:29:29.230Z","0.1.4":"2014-04-24T09:30:18.969Z","0.1.5":"2014-04-24T09:40:48.395Z","0.1.7":"2014-04-26T08:18:32.095Z","0.1.8":"2014-04-26T08:23:58.214Z","0.1.9":"2014-07-02T09:13:02.688Z","0.1.10":"2014-07-21T06:03:50.209Z","0.1.11":"2014-08-05T08:37:11.478Z"},"readmeFilename":"README.md","homepage":"https://github.com/huston007/grunt-html-inheritance","keywords":["gruntplugin","html","inheritance","template"],"repository":{"type":"git","url":"git://github.com/huston007/grunt-html-inheritance.git"},"author":{"name":"Andrey Skladchikov","email":"andrey.skladchikov@gmail.com","url":"http://www.linkedin.com/profile/view?id=75527867"},"bugs":{"url":"https://github.com/huston007/grunt-html-inheritance/issues"},"users":{"huston007":true}}