![]() And since the generated html isn't valid html, it failed. It's a bit clunky, but this is the working solution at the moment. It has functionality to add html email templates, but it also validates the entered html before saving it. conditional-statements mjml Share Improve this question Follow edited at 17:25 ouflak 2,448 10 44 49 asked at 18:13 Erick Bravo 31 1 5 Add a comment 2 Answers Sorted by: 1 I found that nesting if statements works. The reason for raising this issues was that I tried to use the html generated by mjml with one Microfocus product. It's clear that browsers and other web page renders are forced to deal with all kinds of non-standard stuff, but still think html generators should aim to produce valid html. So, it seems that web developers are between a rock and a hard place here. If the idea is to work around rendering extra "->", shouldn't the first format be used everywhere (or at least in the body)? Style comments within the ? At least based on the mentioned test source document. Style conditional comments within the section, but only Looking a bit more on the generated html, is there any reason why mjml generates both On the other hand, there seems to be no problem with the downlevel-hidden conditional comments, except for the fact that usually one would like to add something for the older MS products instead of adding something for all the rest. But any workaround for this like having nested "" is not allowed by the html standard. Would be ok by the standard, except for the fact that some IE-based browsers would also render the initial "->". As explained by the wikipedia article, there seems to be no good format for the downlevel-revealed conditional comments.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |