{"_id":"digger-blueprints","_rev":"31-8f5cfd0639501db348b4b0b8c4a74dcc","name":"digger-blueprints","description":"Client side blueprint handler for digger","dist-tags":{"latest":"1.5.2"},"versions":{"0.0.1":{"name":"digger-blueprints","version":"0.0.1","description":"A warehouse that knows how to process blueprint XML and include external HTML field templates","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"_id":"digger-blueprints@0.0.1","dist":{"shasum":"2a2777eadb20eafb506e0b5382adcbc96a7bbec0","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-0.0.1.tgz","integrity":"sha512-yqDInA+K1Ln5KtatZvUroDnI/OvXhAVzQYFTur+g06DpdIxT5nvDpOgMuqKBLIbzjcG8Vxayxa5qliaTmrta7w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd4SHxrpJqJXqeNHiholLy75n/svtMzSZte8DWw8vXPQIhAJMS8+bI4xcKA8nRSs/gI7pGsy6n2OymdqtM7xsS0cR0"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"0.0.2":{"name":"digger-blueprints","version":"0.0.2","description":"A warehouse that knows how to process blueprint XML and include external HTML field templates","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"dependencies":{"digger-xml":"0.0.3","digger-supplier":"~0.1.7","async":"~0.2.9"},"_id":"digger-blueprints@0.0.2","dist":{"shasum":"32bedafd654bfc79ce030c8b20715db78342c06f","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-0.0.2.tgz","integrity":"sha512-ELcA0MLvbo4rbU/+8HvqbWqpru2kWtRnxyRqYL0gyF6Q3DWqyCdaQfTfhsfRobGwmjbsvKY6jAiDv9HbOHTugw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1d4yrGTaUVv+axNXw1DV77cGU1aQ93OvpZWcH0ezyTwIhAPe5JN3B8T2KH6uw1txxaRhmNafom8Bdv38WPP5AJuXB"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"0.0.4":{"name":"digger-blueprints","version":"0.0.4","description":"A warehouse that knows how to process blueprint XML and include external HTML field templates","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"dependencies":{"digger-xml":"0.0.3","digger-supplier":"~0.1.7","async":"~0.2.9"},"_id":"digger-blueprints@0.0.4","dist":{"shasum":"f2a7a60cfc6f0b2348ad487362bf86ec28fb5371","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-0.0.4.tgz","integrity":"sha512-Y3p7fov8vw6jyw/x8FB7GYK2xHjEKEQtw9NWqWorqK3q+6iY+Ei8kymXGgyQH4jfyHvdGO7ISMfELoco86YPRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDNifW6BRIHB9HgXYIaHJb+t8DQTfiuxMADlYPlXxcoeAiEAvU/ryrsC90ouTWamF/ehohP5C9V941HiNs3wscj1bZU="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"0.0.6":{"name":"digger-blueprints","version":"0.0.6","description":"A warehouse that knows how to process blueprint XML and include external HTML field templates","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"dependencies":{"digger-xml":"~0.0.3","digger-supplier":"~0.1.7","async":"~0.2.9"},"_id":"digger-blueprints@0.0.6","dist":{"shasum":"7e818053b7d9cf3c3d850a9a1bc0a6b2e2cd364f","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-0.0.6.tgz","integrity":"sha512-bokUwDT3EMaEq9w2yQ70bS07f1RsHg7TauSRRQSEInQcxggfUe+rbCe+eq8mKlp3L7K3RVc2kcQNvlpUd5erRw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDddub9V8/H+fnmjHXni6MJrvdwTDkugpD89wSEyROZyAIgXqLuKsWJbpWMADAi8HEE8hfUX4R+0HD0/dgddTDTipw="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"1.0.0":{"name":"digger-blueprints","version":"1.0.0","description":"Client side blueprint handler for digger","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"dependencies":{},"_id":"digger-blueprints@1.0.0","dist":{"shasum":"e1ad1f199e78fdab3affcc9505d752e1cfddb95b","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-1.0.0.tgz","integrity":"sha512-emroAg68KLJMF7qRRcQa3UPuykaOonY/rTOxrQzSQtO/riH8aOnQzFyJAhGzqk/4VD0G+7If8MhfGJteSBbPLw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWRzxaVi0DPTl51lFqhBHfz6DXbj9hEn6BTOPg7Q5pkAIgdY1gcz3phjngycXmS0d9nkoJlCSZSfM9S8HLmRo1AQA="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"1.0.1":{"name":"digger-blueprints","version":"1.0.1","description":"Client side blueprint handler for digger","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"dependencies":{},"_id":"digger-blueprints@1.0.1","dist":{"shasum":"149de4ff67459d19c5142d2b20b3ced75a5778e5","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-1.0.1.tgz","integrity":"sha512-OqBptwrVIamlAbitp+RuO3XwpPJC7TucsYCE0U5FM76K6lWJ5fQv5mR+IphDbXYJ1Op2KVncg5hUa42ixgC94A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDoPomeU6KQDfGSFlR3l4xdMizEs9BcT+E4B1/OK8vr2QIhAJOex63kH8hKqLNz+51tQtzBAGMwhHiTc2dl/qqEBrDT"}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"1.1.0":{"name":"digger-blueprints","version":"1.1.0","description":"Client side blueprint handler for digger","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"devDependencies":{"mocha":"~1.14.0","mocha-phantomjs":"~3.1.6","browserify":"*","digger-supplychain":"*","should":"~2.1.0"},"_id":"digger-blueprints@1.1.0","dist":{"shasum":"877deb4d960d9e7d5e0e2fdd4182aadc9a61e6ef","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-1.1.0.tgz","integrity":"sha512-Wy0xMzRIfsg1CgOGLG3s/rNBV5eehRURzGDQNul8Hh3A4iNbH2KGnN3EjX1vmT4n504k+4WOv9wi2WE8qGU7ww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDdHExh5tXoPtMiuZe2qCpTewbtOboQ0CK5ec4L8jf7ZAIgWN151QwABwUckalbUVnifKF6JikxYemeoSx0eJCyKjg="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"1.2.0":{"name":"digger-blueprints","version":"1.2.0","description":"Client side blueprint handler for digger","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"devDependencies":{"mocha":"~1.14.0","mocha-phantomjs":"~3.1.6","browserify":"*","digger-supplychain":"*","should":"~2.1.0"},"homepage":"https://github.com/binocarlos/digger-blueprints","_id":"digger-blueprints@1.2.0","dist":{"shasum":"04dadb7395b994977148e69e3575d2d3e5b5cfe5","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-1.2.0.tgz","integrity":"sha512-E+RWFz4iMQsKw+C0Hdh0drWIShYzgjms4om8Tfn3L7EQWskoho8jBDI1W2OSTk+Yqx8gcqWMvX24vpMRCPpSPg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICkN001ZdGDzFDLFekUqOIfDJWH0SD6eJB6f4gZJ6hJfAiEA5++u538mxH22WHc97TFeOEuyVK0Y8tcUxfXRC963Z2Y="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"1.3.0":{"name":"digger-blueprints","version":"1.3.0","description":"Client side blueprint handler for digger","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"devDependencies":{"mocha":"~1.14.0","mocha-phantomjs":"~3.1.6","browserify":"*","digger-supplychain":"*","should":"~2.1.0"},"homepage":"https://github.com/binocarlos/digger-blueprints","_id":"digger-blueprints@1.3.0","dist":{"shasum":"ccf5b601f1656ff42b1bd5c413853baae9aeb427","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-1.3.0.tgz","integrity":"sha512-T2VLj51hYqxgaoiHaoa2mQ5y2tjmD/1tvrEKqPqqzJh+u4tzcEobzzyQ6ZAcFIlu9/MJHr25Fj0+ptz7Csq/Pg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+kPgZrOG8+bxOgOLzAP6cOK2TgypX8hAKEq4cXaoNDgIgCeCH0yWN7/Xb834a/QoN4+j6IespuA83PXpljG40Adk="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"1.3.1":{"name":"digger-blueprints","version":"1.3.1","description":"Client side blueprint handler for digger","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"devDependencies":{"mocha":"~1.14.0","mocha-phantomjs":"~3.1.6","browserify":"*","digger-supplychain":"*","should":"~2.1.0"},"homepage":"https://github.com/binocarlos/digger-blueprints","_id":"digger-blueprints@1.3.1","dist":{"shasum":"deaa72a014bfd12436290d693651b548e3232b3f","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-1.3.1.tgz","integrity":"sha512-/Y1zqArR2DgruxtfMzTBgEq+n1dSrzyUVbL8UVJ5/yU+i8s3UI7cxl7Rzpd2izdS0jkBIXIpMvzQfyI2LFVN/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDykICSTg+CXrDxjjhEEMp0mmfKpyU69dwhDML2JZkqpAIhAOj1TJWpnDWaPEYKX6ulI+z9f1OAKAJHhYcdhVihCF7P"}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"1.4.0":{"name":"digger-blueprints","version":"1.4.0","description":"Client side blueprint handler for digger","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"devDependencies":{"mocha":"~1.14.0","mocha-phantomjs":"~3.1.6","browserify":"*","digger-supplychain":"*","should":"~2.1.0"},"homepage":"https://github.com/binocarlos/digger-blueprints","_id":"digger-blueprints@1.4.0","dist":{"shasum":"b143fbb730e2dcd052709ba90354a1c21cffad7c","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-1.4.0.tgz","integrity":"sha512-5oyhLb2ek1NhevUJin/FdJOUunTjyrlwZZJEd+Ag3ZqUyzhycvpySjGIwcHRjtg5lMjDlyH5zyz6IfmzzbtkjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICZ4pbP6masuIAp6UiClEja61VNLbuJXOqjYjaALpuZHAiEAoh+IZnzJ2IKv3GQe/FlYKkDRv+YgAKu8q/TmW93pBh0="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"1.5.0":{"name":"digger-blueprints","version":"1.5.0","description":"Client side blueprint handler for digger","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"devDependencies":{"mocha":"~1.14.0","mocha-phantomjs":"~3.1.6","browserify":"*","digger-supplychain":"*","should":"~2.1.0"},"homepage":"https://github.com/binocarlos/digger-blueprints","_id":"digger-blueprints@1.5.0","dist":{"shasum":"d912eecfc2d661d154bf049bd0cf79c52a5720d4","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-1.5.0.tgz","integrity":"sha512-kNidnCYS6ojrJWBAtCBW7CsBVbKWJSI6tF66TjHiocTel/ZUlBaRfJS9tF4o5XptMkwMvrsDWiH2NZZ4tkn1kA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHx3uI5uIOp2lz17seSvGpMqsFEncYHvw8QCx+fdoZL/AiB6l5jnD1zsf0IqKB85naym73juVOxRzWcF70KHFqGXKQ=="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"1.5.1":{"name":"digger-blueprints","version":"1.5.1","description":"Client side blueprint handler for digger","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"devDependencies":{"mocha":"~1.14.0","mocha-phantomjs":"~3.1.6","browserify":"*","digger-supplychain":"*","should":"~2.1.0"},"homepage":"https://github.com/binocarlos/digger-blueprints","_id":"digger-blueprints@1.5.1","dist":{"shasum":"70abda3a259656dc47fb0bceb9438d29e79fa57c","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-1.5.1.tgz","integrity":"sha512-fnV09vzlbVixECOTrDmjuoWYaHUBLUNa+zwZjY0VOIapAeoGLg5pY0WmV7bKHNPLi16GIjL83qsWWqJjr6MkJg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCqema89sYjrzmrfPQMKx+PQ6aabVjTJTTHR8DulIw3mgIgPU9INTFQcl5q5tUAS3xDu3yPIHKw9LEr63zgLxKYWTs="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]},"1.5.2":{"name":"digger-blueprints","version":"1.5.2","description":"Client side blueprint handler for digger","main":"src/index.js","scripts":{"test":"make test"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"keywords":["digger","blueprint"],"author":{"name":"Kai Davenport"},"license":"MIT","bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"devDependencies":{"mocha":"~1.14.0","mocha-phantomjs":"~3.1.6","browserify":"~2.36.1","digger-supplychain":"~0.4.4","should":"~2.1.0"},"homepage":"https://github.com/binocarlos/digger-blueprints","_id":"digger-blueprints@1.5.2","dist":{"shasum":"fc8f134bf73bcf93c67282f3df580fde51422c84","tarball":"https://registry.npmjs.org/digger-blueprints/-/digger-blueprints-1.5.2.tgz","integrity":"sha512-QK6uf4Sxl0hfqDkWorQoRNCKhaAOgFCd1tOGpoM4ncKLv8MpL9suyszTQFTVYCChDw0XZ6bAa2zTYsxhW3Zr4w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCjGiQjGRr79Mf+BuQxvf83NebjygNs5OFG9dTPLDg7bAIgHczG98e4YOshm9XzFdKICGw0msKt5gst/s1jeu6rTGg="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"binocarlos","email":"kaiyadavenport@gmail.com"},"maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}]}},"readme":"digger-blueprints\n=================\n\n![Build status](https://api.travis-ci.org/binocarlos/digger-blueprints.png)\n\nClient side blueprint handler for digger\n\nThis is merged into $digger as the 'blueprints' property.\n\n#Blueprint Format\n\nThe blueprint format in digger is a very simple XML structure.\n\nThe elements are:\n\n * blueprint - the top level 'thing'\n * field - each blueprint has a list of fields\n * option - the list of options for select and radio fields\n * tab - each blueprint can have a list of tabs - each tab can have a list of fields\n\n\nAn example of the most basic blueprint with 1 field - 'name':\n\n```xml\n<blueprint name=\"mything\">\n\t<field name=\"name\" />\n</blueprint>\n```\n\n###Blueprint Attributes\n\nThe top level blueprint element can have the following properties:\n\n####name\nThe name is how the blueprint will be referenced and can be any string.  If there is no **tag** attribute then the name is used as the tag.\n\n####tag\nThe tag will be assigned to the container created from the blueprint.\n\nHere is a blueprint known as 'My Big Blueprint Title' but that will create a 'thing' container.\n\n```xml\n<blueprint name=\"My Big Blueprint Title\" tag=\"thing\" />\n```\n\nHere is a blueprint that uses the name for the tag:\n\n```xml\n<blueprint name=\"thing\" />\n```\n\nThis is invalid (because there is no tag - the name cannot have spaces):\n\n```xml\n<blueprint name=\"The name cannot have spaces without a tag\" />\n```\n\n####class\nThe class attribute of the blueprint will be assigned to the new container:\n\n```xml\n<blueprint name=\"Citrus Fruit\" tag=\"fruit\" class=\"citrus\">\n\t<field name=\"name\" />\n</blueprint>\n```\n\n####leaf\nThe leaf attribute of the blueprint means that no children can be added to the container:\n\n```xml\n<blueprint name=\"stat\" leaf=\"true\">\n\t<field name=\"value\" />\n</blueprint>\n```\n\n####children\nThe children attribute controls what other blueprints can be added to this one.\n\nThe names are split by comma and only those blueprints are allowed as children.\n\n```xml\n<blueprint name=\"statgroup\" children=\"stat\">\n\t<field name=\"name\" />\n</blueprint>\n```\n\n###Fields\nEach blueprint has an array of fields that control what will appear on the form.\n\nEach field has 2 core properties:\n\n * name - what property of the model the field will edit\n * type - what type will be rendered\n\nFor example - if we wanted to edit the 'comments' property of a container and have a 'textarea' appear for it:\n\n```xml\n<field name=\"comments\" type=\"textarea\" />\n```\n\nYou can nest fieldnames with dots.\n\n```xml\n<field name=\"address.street\" />\n<field name=\"address.city\" />\n<field name=\"address.postcode\" />\n```\n\nThis example would create an 'address' object with 3 properties inside.  The default type is 'text'.\n\n####Labels\nYou can have a different label from the fieldname:\n\n```xml\n<field name=\"ahqr\" title=\"App Hours Queue Rate\" />\n```\n\n####Field Types\nThere are a number of built-in fieldtypes:\n\n * text\n * url\n * number\n * money\n * email\n * textarea\n * diggerclass\n * diggericon\n * template\n * checkbox\n * radio\n * select\n * diggerurl\n * file\n\nHere is an example blueprint with 3 fields of different types:\n\n```xml\n<blueprint name=\"mything\">\n\t<field name=\"name\" />\n\t<field name=\"price\" type=\"money\" />\n\t<field name=\"description\" type=\"textarea\" />\n</blueprint>\n```\n\n####Lists\nA field can be a list of values - to turn a field into a list add list=\"true\" to the XML:\n\n```xml\n<blueprint name=\"mything\">\n\t<field name=\"name\" />\n\t<field name=\"notes\" type=\"text\" list=\"true\" />\n</blueprint>\n```\n\n####Tabs\nTabs group other fields or can display a single field.\n\nTo have a tab with some fields:\n\n```xml\n<blueprint name=\"mything\">\n\t<field name=\"name\" />\n\t<tab name=\"address\">\n\t\t<field name=\"address.street\" />\n\t\t<field name=\"address.city\" />\n\t\t<field name=\"address.postcode\" />\n\t</tab>\n</blueprint>\n```\n\nTo have a tab that is a single field:\n\n```xml\n<blueprint name=\"mything\">\n\t<field name=\"name\" />\n\t<tab name=\"notes\" type=\"textarea\" />\n</blueprint>\n```\n\nTo have a tab that is a single list:\n\n```xml\n<blueprint name=\"mything\">\n\t<field name=\"name\" />\n\t<tab name=\"notes\" type=\"text\" list=\"true\" />\n</blueprint>\n```\n\n####Options\nThe radio and select types need an array of options to fill.\n\nThe simplest way is to add them to the field.\n\nYou can do this either with a csv string:\n\n```xml\n<blueprint name=\"mything\">\n\t<field name=\"name\" />\n\t<field name=\"food\" type=\"select\" options_csv=\"cake,fruit,pasta\" />\n</blueprint>\n```\n\nOr with nested option elements:\n\n```xml\n<blueprint name=\"mything\">\n\t<field name=\"name\" />\n\t<field name=\"food\" type=\"select\">\n\t\t<option value=\"cake\" />\n\t\t<option value=\"fruit\" />\n\t\t<option value=\"pasta\" />\n\t</field>\n</blueprint>\n```\n\nAnother way to fill options is to load them from a digger query.\n\nHere is an example of populating a select list with the countries from a warehouse:\n\n```xml\n<blueprint name=\"mything\">\n\t<field name=\"name\" />\n\t<field name=\"country\" type=\"select\" options_warehouse=\"binocarlos/countries\" options_selector=\"country:sort(name)\" />\n</blueprint>\n```\n\n####Templates\nFor single page applications you can also include custom field types in the form of a template.\n\nDigger fields use angular and so templates are in angular markup - the **model** and **fieldname** properties of the scope are used to write to the container.\n\nHere is a custom radio button as an example template:\n\n```html\n<script type=\"digger/field\" name=\"customradio\">\n\t<div>\n\t\t<button class=\"btn\" ng-class=\"{'btn-primary':!model[fieldname]\">No</button>\n\t\t<button class=\"btn\" ng-class=\"{'btn-primary':model[fieldname]\">Yes</button>\n\t</div>\n</script>\n```\n\nAnd here is a blueprint that uses that template:\n\n```xml\n<blueprint name=\"mything\">\n\t<field name=\"name\" />\n\t<field name=\"active\" type=\"customradio\" />\n</blueprint>\n```\n\n####Components\nDigger components enable you to a GitHub repository as a field type.\n\nHere is an example of using the ace-editor as a field type:\n\n```xml\n<blueprint name=\"webpage\">\n\t<field name=\"name\" />\n\t<field name=\"html\" type=\"binocarlos/ace-editor\" />\n</blueprint>\n```\n\nDigger will download the component - build it and inject it into the field.\n","maintainers":[{"name":"binocarlos","email":"kaiyadavenport@gmail.com"}],"time":{"modified":"2022-06-15T03:51:18.900Z","created":"2013-10-12T09:07:48.368Z","0.0.1":"2013-10-12T09:07:52.955Z","0.0.2":"2013-10-12T09:25:53.127Z","0.0.4":"2013-10-12T20:13:32.047Z","0.0.6":"2013-10-12T20:30:33.525Z","1.0.0":"2013-11-20T15:35:12.791Z","1.0.1":"2013-11-20T15:36:39.492Z","1.1.0":"2013-12-16T15:56:55.889Z","1.2.0":"2014-03-04T16:25:47.132Z","1.3.0":"2014-03-14T18:09:45.921Z","1.3.1":"2014-03-15T23:56:28.146Z","1.4.0":"2014-03-16T13:58:57.263Z","1.5.0":"2014-03-29T15:50:13.394Z","1.5.1":"2014-03-29T15:57:09.284Z","1.5.2":"2014-04-10T14:01:13.296Z"},"author":{"name":"Kai Davenport"},"repository":{"type":"git","url":"https://github.com/binocarlos/digger-blueprints.git"},"homepage":"https://github.com/binocarlos/digger-blueprints","keywords":["digger","blueprint"],"bugs":{"url":"https://github.com/binocarlos/digger-blueprints/issues"},"license":"MIT","readmeFilename":"README.md"}