Nightly Procrastination Machine

    gulp-razor-emailer

    1.0.0 • Public • Published

    gulp-razor-emailer

    Create and send emails through 'mandrill' with Razor syntax (perfect for testing Asp.Net email services)

    Install with npm

    npm install --save-dev gulp-razor-emailer
    

    Example

    var gulp = require('gulp');
    var razorEmailer = require('gulp-razor-emailer')('mandrill-api-key');
     
    // Test Model (can be loaded from json)
    var model = { 
        Name : 'Erik', 
        Age : 26, 
        Address : { 
            Street : '1414 Valebrook Ln', 
            City : 'Herndon', 
            State : 'VA', 
            Zip : '20170' 
        } 
    };
     
    gulp.task('default', function () {
        gulp.src('test.cshtml')
            .pipe(razorEmailer(model))
            .pipe(gulp.dest('dist'));
    });

    License

    MIT @erik5388

    Install

    npm i gulp-razor-emailer

    DownloadsWeekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • zettersten