{"repo":"posthtml/posthtml-mso","free":true,"listed":false,"github":"https://github.com/posthtml/posthtml-mso","clone":"git clone https://github.com/posthtml/posthtml-mso.git","description":"Makes writing Outlook conditionals in HTML emails easy.","language":"JavaScript","stars":23,"topics":["mso","html","outlook","posthtml","html-email","conditionals","posthtml-plugin","email-templates","html-comments","outlook-conditionals"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Outlook Conditionals Makes it easy to write Outlook conditionals in HTML emails [![Version][npm-version-shield]][npm] [![Build][github-ci-shield]][github-ci] [![License][license-shield]][license] [![Downloads][npm-stats-shield]][npm-stats] Introduction Writing Outlook conditionals in HTML emails is gross: It gets even worse when you need to target specific versions : This PostHTML plugin simplifies the way you write Outlook conditional comments: Like, really simple: Install Usage Syntax The plugin provides two (customizable) tags: 1. 2. This will output the content inside it, wrapped in an Outlook conditional comment. The conditional is created based on the Outlook version(s) you need to target, which you can define inside special attributes (documented below). Using the tag with no attributes will target all Outlook versions: Result: This tag will basically hide content from all Outlook versions: Result: Attributes To define which Outlook versions you are targeting, you can use one of the following attributes: - only - show only in these Outlook versions - not - show in all versions except these - lt - all versions before this (not including it, i.e. lower than ) - lte - all versions before this (including it, i.e. lower than or equal to ) - gt - all versions after this (not including it, i.e. greater than ) - gte - all versions after this (including it, i.e. greater than or equal to ) only Show the content only in this Outlook version: Result: It also supports multiple, com","default_branch":null,"files":null,"tree":[],"storefront":"/r/posthtml","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/posthtml/posthtml-mso/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}