Skip to content

Commit

Permalink
cleaned up the Mailer.ps1 file
Browse files Browse the repository at this point in the history
  • Loading branch information
smsohan committed Feb 23, 2011
1 parent 25435e8 commit 5a3baae
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions Mvc.Mailer/content/CodeTemplates/Scaffolders/Mailer/Mailer.ps1
Expand Up @@ -8,9 +8,11 @@ param(
[switch]$Force = $false
)

# Decide where to put the output file relative to the Visual Studio project
# Note that the filename extension will be added automatically based on the template's Output Extension directive

###########################################################
### ###
### FUNCTIONS ###
### ###
###########################################################
function CreateCSFileFromTemplate
{
param ($MailerTemplate, $outputPath)
Expand All @@ -32,8 +34,11 @@ function CreateCSFileFromTemplate
}
}

CreateCSFileFromTemplate IMailerTemplate I$MailerName
CreateCSFileFromTemplate MailerTemplate $MailerName
function CreateCSFiles
{
CreateCSFileFromTemplate IMailerTemplate I$MailerName
CreateCSFileFromTemplate MailerTemplate $MailerName
}

function CreateViewFileFromTemplate
{
Expand Down Expand Up @@ -63,5 +68,8 @@ function CreateLayoutAndViews
}
}

######## END FUNCTIONS ####################################

CreateCSFiles
CreateLayoutAndViews

0 comments on commit 5a3baae

Please sign in to comment.