简体   繁体   English

把手是否与Microsoft条件注释一起使用?

[英]Do Handlebars work with Microsoft Conditional comments?

We use conditional comments for our html email templates, as well as handlebars. 我们为HTML电子邮件模板以及把手使用条件注释。 I'm just wondering if handlebars can be used inside conditional comments like so: 我只是想知道是否可以在条件注释中使用把手,例如:

                        <div>
                            <!--[if mso]>
                              <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{candy.website}}" style="height:40px;v-text-anchor:middle;width:104px;" arcsize="5%" strokecolor="#3ab4e2" fillcolor="#3ab4e2">
                                <w:anchorlock/>
                                <center style="color:#ffffff;font-family:'Open Sans', 'Arial', sans-serif;font-size:14px;">View brand</center>
                              </v:roundrect>
                            <![endif]--><a href="www.candies.com"
                        style="background-color: #3ab4e2; border: 1px solid #3ab4e2; border-radius: 2px; color: #ffffff; display: inline-block; font-family: 'Open Sans', 'Arial', sans-serif; font-size: 14px; line-height: 40px; margin: 0px; padding: 0px; text-align: center; text-decoration: none; width: 104px; -webkit-text-size-adjust: none; mso-hide: all;">View brand</a>
                        </div>

好吧,事实证明它们工作正常!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM