Created
May 2, 2017 15:11
-
-
Save nchristus/3fc437efa5db10b94fa27b46618170bd to your computer and use it in GitHub Desktop.
Grunt global variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt.registerTask('build', 'Build specified email template.', function(template) { | |
if (template == null) { | |
grunt.warn('Template must be specified, like build:simple.'); | |
} | |
global.template = template; | |
grunt.task.run('email'); | |
}); | |
// Variable | |
<%= global.template %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment