mirror of
https://github.com/vale981/Vulcan
synced 2025-03-12 05:26:38 -04:00
30 lines
1.1 KiB
JavaScript
30 lines
1.1 KiB
JavaScript
// Meteor.startup(function () {
|
|
|
|
// Router.route('/email/campaign', {
|
|
// name: 'campaign',
|
|
// where: 'server',
|
|
// action: function() {
|
|
// var campaign = buildCampaign(getCampaignPosts(Settings.get('postsPerNewsletter', 5)));
|
|
// var campaignSubject = '<div class="campaign-subject"><strong>Subject:</strong> '+campaign.subject+' (note: contents might change)</div>';
|
|
// var campaignSchedule = '<div class="campaign-schedule"><strong>Scheduled for:</strong> '+ Meteor.call('getNextJob') +'</div>';
|
|
|
|
// this.response.write(campaignSubject+campaignSchedule+campaign.html);
|
|
// this.response.end();
|
|
// }
|
|
// });
|
|
|
|
// Router.route('/email/digest-confirmation', {
|
|
// name: 'digestConfirmation',
|
|
// where: 'server',
|
|
// action: function() {
|
|
// var confirmationHtml = Telescope.email.getTemplate('emailDigestConfirmation')({
|
|
// time: 'January 1st, 1901',
|
|
// newsletterLink: 'http://example.com',
|
|
// subject: 'Lorem ipsum dolor sit amet'
|
|
// });
|
|
// this.response.write(Telescope.email.buildTemplate(confirmationHtml));
|
|
// this.response.end();
|
|
// }
|
|
// });
|
|
|
|
// });
|