mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Apply template string
This commit is contained in:
@@ -7,14 +7,14 @@ function greet(welcomeMsg) {
|
||||
return function(user, url) {
|
||||
var greeting = (user.profile && user.profile.name) ?
|
||||
("Hello " + user.profile.name + ",") : "Hello,";
|
||||
return greeting + "\n"
|
||||
+ "\n"
|
||||
+ welcomeMsg
|
||||
+ ", simply click the link below.\n"
|
||||
+ "\n"
|
||||
+ url + "\n"
|
||||
+ "\n"
|
||||
+ "Thanks.\n";
|
||||
return `${greeting}
|
||||
|
||||
${welcomeMsg}, simply click the link below.
|
||||
|
||||
url
|
||||
|
||||
Thanks.
|
||||
`;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@ Package.onUse(function(api) {
|
||||
api.use('random', ['server']);
|
||||
api.use('check');
|
||||
api.use('underscore');
|
||||
api.use('ecmascript');
|
||||
|
||||
api.addFiles('email_templates.js', 'server');
|
||||
api.addFiles('password_server.js', 'server');
|
||||
|
||||
Reference in New Issue
Block a user