How to use the mjml-core/lib/helpers/conditionalTag.msoConditionalTag function in mjml-core

To help you get started, we’ve selected a few mjml-core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mjmlio / mjml / packages / mjml-carousel / src / Carousel.js View on Github external
renderFallback() {
    const { children } = this.props
    if (children.length === 0) return ''

    return msoConditionalTag(
      this.renderChildren([children[0]], {
        attributes: {
          'border-radius': this.getAttribute('border-radius'),
        },
      }),
    )
  }
github mjmlio / mjml / packages / mjml-carousel / src / Carousel.js View on Github external
render() {
    return `
      ${msoConditionalTag(
        `
        <div>
          ${this.generateRadios()}
          <div>
            ${this.generateThumbnails()}
            ${this.generateCarousel()}</div></div>