Skip to content
This repository was archived by the owner on Jan 22, 2021. It is now read-only.

Commit bcf2a66

Browse files
committed
Fix correct layout conditions. Fixes #11
1 parent ad401a1 commit bcf2a66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: emails.coffee

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ MailerClass = (options) ->
7474
# Take optional template helpers.
7575
helpers: Match.Optional Object
7676
# Take an optional layoute template object.
77-
layout: Match.Optional Object
77+
layout: Match.Optional Match.OneOf(Object, Boolean)
7878
)
7979

8080
settings = _.extend({}, Mailer.settings, options.settings)
@@ -137,7 +137,7 @@ MailerClass = (options) ->
137137
if template.scss
138138
content = addCSS Utils.toCSS(template.scss), content
139139

140-
if options.layout? and template.layout isnt false
140+
if options.layout and template.layout isnt false
141141
layout = options.layout
142142
layoutContent = Utils.readFile(layout.path)
143143

0 commit comments

Comments
 (0)