{"_id":"jamoose","_rev":"40-5f6c1877337620ec5698a641b425b327","name":"jamoose","description":"Preprocessing and Sending HTML Emails in Node.js","dist-tags":{"latest":"2.2.0"},"versions":{"0.1.0":{"name":"jamoose","description":"Preprocessing and Sending HTML Emails in Node.js","version":"0.1.0","homepage":"https://github.com/maxbeatty/jamoose","author":{"name":"Max Beatty","email":"max@beatty.me"},"repository":{"type":"git","url":"git://github.com/maxbeatty/jamoose.git"},"bugs":{"url":"https://github.com/maxbeatty/jamoose/issues"},"licenses":[{"type":"MIT","url":"https://github.com/maxbeatty/jamoose/blob/master/LICENSE"}],"main":"lib/jamoose","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"grunt":"~0.4.2","lodash":"~2.4.1","jade":"~1.0.2","juice":"~0.4.0"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-clean":"~0.5.0"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"_id":"jamoose@0.1.0","dist":{"shasum":"47e208b31e96fa38a82298d25c5970cf11cf1e22","tarball":"https://registry.npmjs.org/jamoose/-/jamoose-0.1.0.tgz","integrity":"sha512-mCdLvScowhU4mftbgcGwtwfxs+MEcDuZBFeSfDlR5qCfLqaKZevTEpD9kdCX1Nau62VGFI82T95xdXPW181i8w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKVTE4eRr8mMN6TU+7rfSrH4td5TxIX3rKbZQzpmoVDAIhAJM0M0P06G0bUL1L0nD6zteMOG/sklSrhXP5dYkuiruZ"}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"maxbeatty","email":"max@beatty.me"},"maintainers":[{"name":"maxbeatty","email":"max@beatty.me"}],"directories":{}},"0.2.1":{"name":"jamoose","description":"Preprocessing and Sending HTML Emails in Node.js","version":"0.2.1","homepage":"https://github.com/maxbeatty/jamoose","author":{"name":"Max Beatty","email":"max@beatty.me"},"repository":{"type":"git","url":"git://github.com/maxbeatty/jamoose.git"},"bugs":{"url":"https://github.com/maxbeatty/jamoose/issues"},"licenses":[{"type":"MIT","url":"https://github.com/maxbeatty/jamoose/blob/master/LICENSE"}],"main":"lib/jamoose","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"grunt":"~0.4.2","lodash":"~2.4.1","jade":"~1.0.2","juice":"~0.4.0","hogan.js":"~2.0.0","sendgrid":"~1.0.0-rc.1.0"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-clean":"~0.5.0"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"_id":"jamoose@0.2.1","dist":{"shasum":"56d926df2337ddbc238b463a7c8b55c2a9307f88","tarball":"https://registry.npmjs.org/jamoose/-/jamoose-0.2.1.tgz","integrity":"sha512-ivsihuHg0sKY9X8NLQY1x+TpuNVDQ5jUpvcj4yAS3xQhbytNL1o19aPJQZqAXhaql6KB/6UmIudQNKA0HeSPjw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJtakhyYwCMIBPhJNZKB0j7GV1/s14AbvnyvvGZLNd9AIgQa5KIZfLtSTLg4LKjWMVgUVeP0qVFUdmPvXeHw+g0ns="}]},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"maxbeatty","email":"max@beatty.me"},"maintainers":[{"name":"maxbeatty","email":"max@beatty.me"}],"directories":{}},"0.2.2":{"name":"jamoose","description":"Preprocessing and Sending HTML Emails in Node.js","version":"0.2.2","homepage":"https://github.com/maxbeatty/jamoose","author":{"name":"Max Beatty","email":"max@beatty.me"},"repository":{"type":"git","url":"git://github.com/maxbeatty/jamoose.git"},"bugs":{"url":"https://github.com/maxbeatty/jamoose/issues"},"licenses":[{"type":"MIT","url":"https://github.com/maxbeatty/jamoose/blob/master/LICENSE"}],"main":"lib/jamoose","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"dependencies":{"grunt":"~0.4.2","lodash":"~2.4.1","jade":"~1.0.2","juice":"~0.4.0","hogan.js":"~2.0.0","sendgrid":"~1.0.0-rc.1.0"},"devDependencies":{"grunt-contrib-jshint":"~0.6.4","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-clean":"~0.5.0"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"_id":"jamoose@0.2.2","dist":{"shasum":"76b60ccbad72fb1d3612226e8c026e3b2136b036","tarball":"https://registry.npmjs.org/jamoose/-/jamoose-0.2.2.tgz","integrity":"sha512-vultV4boLaB1p/nXabiZa8SRVlkvLZAT2yp2NLX37dzdBdBMvR5ZmTVTi59NqhS2hHhMZTZjlv96wj/IWFqzIQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCD2ggsSV0k0aZDzEEZH05RK/l8cv3Ohc9gIMlTiFYe4AIhAJii/Z6yZEM/TYzNTTDFSXjm7ZIJ0/6i84cPPfY7EzTk"}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"maxbeatty","email":"max@beatty.me"},"maintainers":[{"name":"maxbeatty","email":"max@beatty.me"}],"directories":{}},"0.3.0-0":{"name":"jamoose","description":"Preprocessing and Sending HTML Emails in Node.js","version":"0.3.0-0","homepage":"https://github.com/maxbeatty/jamoose","author":{"name":"Max Beatty","email":"max@beatty.me"},"repository":{"type":"git","url":"git://github.com/maxbeatty/jamoose.git"},"bugs":{"url":"https://github.com/maxbeatty/jamoose/issues"},"licenses":[{"type":"MIT","url":"https://github.com/maxbeatty/jamoose/blob/master/LICENSE"}],"main":"lib/jamoose","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test","prepublish":"grunt coffee"},"files":["lib/"],"dependencies":{"grunt":"~0.4.2","lodash":"~2.4.1","jade":"~1.0.2","juice":"~0.4.0","hogan.js":"~2.0.0","sendgrid":"~1.0.0-rc.1.0"},"devDependencies":{"coffee-script":"~1.6.3","grunt-coffeelint":"0.0.8","grunt-contrib-coffee":"~0.8.2","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-clean":"~0.5.0"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"_id":"jamoose@0.3.0-0","dist":{"shasum":"6871a0000296cba2b06b8e014b828c7d590e9c8e","tarball":"https://registry.npmjs.org/jamoose/-/jamoose-0.3.0-0.tgz","integrity":"sha512-N2Dxw4OP5KykjL2ookzYg9mb1WBuOgZHfcx/+RoUBQO2JmlPn0ptLtyqr+80snRNol/Bq+C2l4PcOSv/UCFz9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDxcl7fSsIFiGGBCQTb0yYRffX5ShiJqwI6lXqF+zgE5wIgPab35GHCpwQyqCwQVwG5C347t5cCVWN1GrWUD+bWZTo="}]},"_from":".","_npmVersion":"1.2.30","_npmUser":{"name":"maxbeatty","email":"max@beatty.me"},"maintainers":[{"name":"maxbeatty","email":"max@beatty.me"}]},"1.0.0":{"name":"jamoose","description":"Preprocessing and Sending HTML Emails in Node.js","version":"1.0.0","homepage":"https://github.com/maxbeatty/jamoose","author":{"name":"Max Beatty","email":"max@beatty.me"},"repository":{"type":"git","url":"git://github.com/maxbeatty/jamoose.git"},"bugs":{"url":"https://github.com/maxbeatty/jamoose/issues"},"licenses":[{"type":"MIT","url":"https://github.com/maxbeatty/jamoose/blob/master/LICENSE"}],"main":"lib/jamoose","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test","prepublish":"grunt coffee"},"files":["lib/"],"dependencies":{"grunt":"~0.4.2","lodash":"~2.4.1","jade":"~1.0.2","juice":"~0.4.0","hogan.js":"~2.0.0","sendgrid":"~1.0.0-rc.1.0","mandrill-api":"~1.0.39"},"devDependencies":{"coffee-script":"~1.6.3","grunt-coffeelint":"0.0.8","grunt-contrib-coffee":"~0.8.2","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-clean":"~0.5.0"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"_id":"jamoose@1.0.0","dist":{"shasum":"644172aadf424094a5099301f8f2b4000fb1ea30","tarball":"https://registry.npmjs.org/jamoose/-/jamoose-1.0.0.tgz","integrity":"sha512-ybLY4wahZSF96pFaXZtKKPK+X39o+QhUnwqK/ZKoaCwpXkrO9rBCqZ9/l6dxIwdG28ryKOhXh9l1g8WVmmMeDA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBeCkcEjIfnaGWmETaxbQhPZWJBUmRAXCXbfb4g6G8KqAiAVvtqyttEPOg/i9lVSradcRuSVPfxF5Uac2ZUAvZ/PrQ=="}]},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"maxbeatty","email":"max@beatty.me"},"maintainers":[{"name":"maxbeatty","email":"max@beatty.me"}]},"2.0.0":{"name":"jamoose","description":"Preprocessing and Sending HTML Emails in Node.js","version":"2.0.0","homepage":"https://github.com/maxbeatty/jamoose","author":{"name":"Max Beatty","email":"max@beatty.me"},"repository":{"type":"git","url":"git://github.com/maxbeatty/jamoose.git"},"bugs":{"url":"https://github.com/maxbeatty/jamoose/issues"},"licenses":[{"type":"MIT","url":"https://github.com/maxbeatty/jamoose/blob/master/LICENSE"}],"main":"lib/jamoose","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test","prepublish":"grunt coffee"},"files":["lib/"],"dependencies":{"grunt":"~0.4.2","lodash":"~2.4.1","jade":"~1.0.2","juice":"~0.4.0","hogan.js":"~2.0.0","sendgrid":"~1.0.0-rc.1.0","mandrill-api":"~1.0.39"},"devDependencies":{"coffee-script":"~1.6.3","grunt-coffeelint":"0.0.8","grunt-contrib-coffee":"~0.8.2","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-clean":"~0.5.0"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"gitHead":"eb443797fec3e1bdd3de4d7cd87bafe795f18a8d","_id":"jamoose@2.0.0","_shasum":"5d99576cb50bcdf88ef20faca3d6b5cc26c5c388","_from":".","_npmVersion":"1.4.13","_npmUser":{"name":"maxbeatty","email":"max@beatty.me"},"maintainers":[{"name":"maxbeatty","email":"max@beatty.me"}],"dist":{"shasum":"5d99576cb50bcdf88ef20faca3d6b5cc26c5c388","tarball":"https://registry.npmjs.org/jamoose/-/jamoose-2.0.0.tgz","integrity":"sha512-whjMzZwe1xYoUD2ciItfjB60SK0TOu3dYT3M51hh8BW3Khws5I0tl8ov+GD2D9hhBpyx6OToYyqqUgEP8T25Mw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+CKJ7fv639tkaZyXhVuvVewHhaO0et6PrwpSjAvJ4JAIhAMdjmQYtMsfTtBceQJL21qPZdMox3mZJBypLLvYN15RZ"}]}},"2.0.1":{"name":"jamoose","description":"Preprocessing and Sending HTML Emails in Node.js","version":"2.0.1","homepage":"https://github.com/maxbeatty/jamoose","author":{"name":"Max Beatty","email":"max@beatty.me"},"repository":{"type":"git","url":"git://github.com/maxbeatty/jamoose.git"},"bugs":{"url":"https://github.com/maxbeatty/jamoose/issues"},"licenses":[{"type":"MIT","url":"https://github.com/maxbeatty/jamoose/blob/master/LICENSE"}],"main":"lib/jamoose","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test","prepublish":"grunt coffee"},"files":["lib/"],"dependencies":{"grunt":"~0.4.2","hogan.js":"~2.0.0","jade":"~1.0.2","juice":"~0.4.0","mandrill-api":"~1.0.39","sendgrid":"~1.0.0-rc.1.0","step":"0.0.5"},"devDependencies":{"coffee-script":"~1.6.3","grunt-coffeelint":"0.0.8","grunt-contrib-coffee":"~0.8.2","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-clean":"~0.5.0"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"_id":"jamoose@2.0.1","dist":{"shasum":"ac8a612cead8bb775353e7ea5e5a89a5b5daa1e9","tarball":"https://registry.npmjs.org/jamoose/-/jamoose-2.0.1.tgz","integrity":"sha512-RbKrBQw9mttWtcvGb1NINcbeYtVQird2cTSpozSQkFaLJmApP9/saQAuwRi17QNrr58DfrexLTSg5C/TnXmaog==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdaLiCuBegEabm8sT1RLK/TNYph522v6BEt68jUi0ZsgIhAL0x2UGLvktXI1LmV1tx4CFWgQV+ZIPXSCB2YD2XkvDX"}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"maxbeatty","email":"max@beatty.me"},"maintainers":[{"name":"maxbeatty","email":"max@beatty.me"}]},"2.1.1":{"name":"jamoose","description":"Preprocessing and Sending HTML Emails in Node.js","version":"2.1.1","homepage":"https://github.com/maxbeatty/jamoose","author":{"name":"Max Beatty","email":"max@beatty.me"},"repository":{"type":"git","url":"git://github.com/maxbeatty/jamoose.git"},"bugs":{"url":"https://github.com/maxbeatty/jamoose/issues"},"licenses":[{"type":"MIT","url":"https://github.com/maxbeatty/jamoose/blob/master/LICENSE"}],"main":"lib/jamoose","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test","prepublish":"grunt coffee"},"files":["lib/"],"dependencies":{"grunt":"~0.4.2","hogan.js":"~2.0.0","jade":"~1.0.2","juice":"~0.4.0","mandrill-api":"~1.0.39","sendgrid":"~1.0.0-rc.1.0","step":"0.0.5","tmp":"0.0.24"},"devDependencies":{"coffee-script":"~1.6.3","grunt-coffeelint":"0.0.8","grunt-contrib-coffee":"~0.8.2","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-clean":"~0.5.0"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"gitHead":"e73cc8dbf633ffb74e48605d122730521e086e34","_id":"jamoose@2.1.1","_shasum":"6a725d9e34bf103231458da76f562b7341c7b557","_from":".","_npmVersion":"1.4.16","_npmUser":{"name":"maxbeatty","email":"max@beatty.me"},"maintainers":[{"name":"maxbeatty","email":"max@beatty.me"}],"dist":{"shasum":"6a725d9e34bf103231458da76f562b7341c7b557","tarball":"https://registry.npmjs.org/jamoose/-/jamoose-2.1.1.tgz","integrity":"sha512-+XAezP2znlChaM9woexC5aWjDlG2gTg3oi2dMC+AsZWp8XjATNrIwnR4D9YSw6STs/wdwZMpTUuFxJa86reAqQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICNxctTeSY/JK6p2RZLpEXe8eHDda42shWL+HjayvHe4AiEArUhOz/+B+CgzwKXxcPKdBHmWLbUJwgWn+p5R/sMKe3w="}]}},"2.2.0":{"name":"jamoose","description":"Preprocessing and Sending HTML Emails in Node.js","version":"2.2.0","homepage":"https://github.com/maxbeatty/jamoose","author":{"name":"Max Beatty","email":"max@beatty.me"},"repository":{"type":"git","url":"git://github.com/maxbeatty/jamoose.git"},"bugs":{"url":"https://github.com/maxbeatty/jamoose/issues"},"licenses":[{"type":"MIT","url":"https://github.com/maxbeatty/jamoose/blob/master/LICENSE"}],"main":"lib/jamoose","engines":{"node":">= 0.10.0"},"scripts":{"test":"grunt test","prepublish":"grunt coffee"},"files":["lib/"],"dependencies":{"grunt":"~0.4.2","hogan.js":"~2.0.0","jade":"~1.0.2","juice":"~0.4.0","mandrill-api":"~1.0.39","sendgrid":"~1.0.0-rc.1.0","step":"0.0.5","tmp":"0.0.24"},"devDependencies":{"coffee-script":"~1.6.3","grunt-coffeelint":"0.0.8","grunt-contrib-coffee":"~0.8.2","grunt-contrib-nodeunit":"~0.2.0","grunt-contrib-watch":"~0.5.3","grunt-contrib-clean":"~0.5.0"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"contributors":[{"name":"Max Beatty","url":"@maxbeatty"},{"name":"Akshay Kumar","url":"@cruzer911"}],"gitHead":"df529e338c6b0557f5497054f0f6ca6d6f84db99","_id":"jamoose@2.2.0","_shasum":"eb5ccce0e7fc46093ad9192ad5dfd0f99ce09bd0","_from":".","_npmVersion":"1.4.16","_npmUser":{"name":"maxbeatty","email":"max@beatty.me"},"maintainers":[{"name":"maxbeatty","email":"max@beatty.me"}],"dist":{"shasum":"eb5ccce0e7fc46093ad9192ad5dfd0f99ce09bd0","tarball":"https://registry.npmjs.org/jamoose/-/jamoose-2.2.0.tgz","integrity":"sha512-vGg54mV49tfFbFPtOOmtWUSW278Y9FESn14sRsjB3PyiTzi1jTh7Mrwr7uhH0FBnwu8R/lmcuDWkIfM14qvNvQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwTABeeUZg4Ia/gT0sGjCN2ERvtSzykPnPsfqDBjojHwIhALJegq8eWF0sBl+ikWMG5yDOYKjpdC1HcwCW7VekWgzm"}]}}},"readme":"# jamoose [![Build Status](https://secure.travis-ci.org/maxbeatty/jamoose.png?branch=master)](http://travis-ci.org/maxbeatty/jamoose) [![Built with Grunt](https://cdn.gruntjs.com/builtwith.png)](http://gruntjs.com/)\n\n> Preprocessing and Sending HTML Emails in Node.js\n\n## Goals\n\n1. Send HTML Emails\n2. Use preprocessors like [Jade](http://jade-lang.com/) and [Sass](http://sass-lang.com/) to write them\n3. Only care about the template and its data at time of sending\n\n## Getting Started\nThis plugin requires Grunt `~0.4.2`\n\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:\n\n```shell\nnpm install jamoose --save\n```\n\nOnce the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:\n\n```js\nrequire('jamoose')(grunt);\n```\n\n_If you can figure out how I can use `loadNpmTasks`, please open a pull request_\n\nYou can require it in your application like so:\n\n```js\nvar jamoose = require('jamoose'),\n    Mailer = new jamoose({});\n```\n\n## The Grunt task\n\n### Overview\nIn your project's Gruntfile, add a section named `jamoose` to the data object passed into `grunt.initConfig()`.\n\n```js\ngrunt.initConfig({\n  jamoose: {\n    options: {\n      // Task-specific options go here.\n    },\n    your_target: {\n      // Target-specific file lists and/or options go here.\n    },\n  },\n});\n```\n\n### Options\n\n#### options.jade\nType: `Object`\nDefault value: `{}`\n\nSame as [Jade API options](http://jade-lang.com/api/)\n\n_**NB**: `options.jade.filename` defaults to the current file's path\n\n#### options.juice\nType: `Object`\nDefault value: `{ url: 'file://' + process.cwd() + '/' }`\n\nSame as [Juice options](https://github.com/LearnBoost/juice#juicefilepath-options-callback)\n\n_**Important**: End your `url` with a trailing slash_\n\n### Usage Example\n\n```js\ngrunt.initConfig({\n  jamoose: {\n    default_options: {\n      files: [\n        {\n          expand: true,\n          flatten: false,\n          cwd: 'test/fixtures',\n          src: '**/*.jade',\n          dest: 'tmp',\n          ext: '.html'\n        }\n      ]\n    }\n  }\n});\n```\n\n## Using in your application\n\nSee the [examples](https://github.com/maxbeatty/jamoose/tree/master/examples) for detailed, working code.\n\n1. Create your email template using Jade. Use Jade variables for anything you want replaced at build time (think cross-app vars like domains and dates). Use Mustache variables for anything you want inserted at send time (think user-specific details like name or address)\n\n```jade\n//- welcome.jade\nhtml\n  head\n    link(rel=\"stylesheet\", href=\"path/to/email.css\")\n  body\n    table\n      tr\n        td\n          h1 Welcome {{name}}\n\n      tr\n        td\n          a(href=domain + '/privacy') Privacy Policy\n```\n\n```sass\n// email.sass\nh1\n  font-size: 30px\n  color: #333\n```\n\n2. Build your templates with Grunt\n\n```bash\n$ grunt sass jamoose\n```\n\nYou now will have an HTML file with inlined CSS* and Mustache variables still in tact.\n\n* Thanks to [LearnBoost/juice](https://github.com/LearnBoost/juice)\n\n```html\n<html>\n  <body>\n    <table>\n      <tr>\n        <td>\n          <h1 style=\"font-size:30px;color:#333\">Welcome {{name}}</h1>\n        </td>\n      </tr>\n      <tr>\n        <td>\n          <a href=\"http://your.domain.from.grunt/privacy\">Privacy Policy</a>\n        </td>\n      </tr>\n    </table>\n  </body>\n</html>\n```\n\n3. Send an email in your app\n\n```js\nvar jamoose = require('jamoose'),\n    mailer = new jamoose({\n      tplPath: 'path/to/templates/from/grunt/',\n      fromEmail: 'sender@edc.ba'\n    });\n\nmailer.send(\n  'test@abc.de', // to\n  'Welcome!', // subject\n  'welcome', // template\n  { // data\n    name: 'John Smith'\n  },\n  function(err) { // callback\n    if (err) { console.log(err); }\n  }\n);\n```\n\n\"Welcome John Smith\" will be sent to \"test@abc.de\" from \"sender@edc.ba\" with the subject \"Welcome!\"\n\n### Email Providers\n\nCurrently supporting:\n\n- [SendGrid](http://sendgrid.com/)\n- [Mandrill](https://mandrillapp.com/)\n\nPlease submit a pull request to add more service providers.\n\nSet the environment variables for the provider of your choice and it will be used automatically.\n\n#### SendGrid\n\n[SendGrid's node library](https://github.com/sendgrid/sendgrid-nodejs) is used under the hood. Required environment variables:\n\n- `SENDGRID_USER` - API user (usually email address)\n- `SENDGRID_KEY` - API key (usually your password)\n\n#### Mandrill\n\n[Mandrill's node library](https://bitbucket.org/mailchimp/mandrill-api-node) is used under the hood. Required environment variable:\n\n- `MANDRILL` - API key (create one from [your settings page](https://mandrillapp.com/settings/index))\n\n### Using in development\n\nIf `process.env.NODE_ENV` is set to `development`, HTML files will be written to a temporary file when you `send`. The path is `console.log` for you to inspect. If you'd like to actually send an email during development or locally, set `process.env.NODE_ENV` to something besides `development`.\n\n## Contributing\nIn lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).\n\n### Testing\n\nTests are written with [nodeunit](https://github.com/caolan/nodeunit) and can be run with `npm test`\n\n## Release History\n\nv2.0.0 - Drop support for Node v0.8\nv1.0.0 - Add Mandrill support\n\n## License\nCopyright (c) 2014 Max Beatty\nLicensed under the MIT license.\n","maintainers":[{"name":"maxbeatty","email":"max@beatty.me"}],"time":{"modified":"2022-06-19T03:40:53.907Z","created":"2014-01-07T20:07:12.988Z","0.1.0":"2014-01-07T20:07:15.803Z","0.2.1":"2014-01-09T07:38:12.288Z","0.2.2":"2014-01-09T17:33:54.270Z","0.2.3":"2014-01-27T05:10:42.380Z","0.2.4-2":"2014-01-27T06:13:50.851Z","0.2.4-3":"2014-01-27T06:23:24.396Z","0.2.4-4":"2014-01-27T06:45:01.806Z","0.2.4-5":"2014-01-27T07:12:13.440Z","0.2.4-6":"2014-01-27T07:47:38.050Z","0.3.0-0":"2014-01-27T08:46:03.253Z","1.0.0":"2014-03-31T04:39:51.351Z","2.0.0":"2014-05-29T22:25:14.687Z","2.0.1":"2014-06-05T15:42:52.681Z","2.1.1":"2014-08-09T17:02:21.105Z","2.2.0":"2014-08-22T23:46:49.373Z"},"author":{"name":"Max Beatty","email":"max@beatty.me"},"repository":{"type":"git","url":"git://github.com/maxbeatty/jamoose.git"},"readmeFilename":"README.md","homepage":"https://github.com/maxbeatty/jamoose","keywords":["gruntplugin"],"bugs":{"url":"https://github.com/maxbeatty/jamoose/issues"},"users":{"maxbeatty":true},"contributors":[{"name":"Max Beatty","url":"@maxbeatty"},{"name":"Akshay Kumar","url":"@cruzer911"}]}