amphtml icon indicating copy to clipboard operation
amphtml copied to clipboard

<template type="amp-mustache"> not rendering

Open leopuglia-a opened this issue 2 years ago • 1 comments

Description

amp-mustache templates are not being rendering in gmail. There is a display: none !important; style being added to it coming from the file /css/ampshared.css as you can see in the screenshot bellow: image

The expected behavior is to have the following from the screenshot bellow, taken from the amp playground with the exact same html code used in gmail. image

Reproduction Steps

using amp-mustache version 0.2 on gmail to render an json object like

{
    "items": [
        {
            "fullname": "",
            "carousel_items": [
                {
                    "image_url": "",
                    "image_alt": "",
                    "redirect_link_url": ""
                },
                {
                    "image_url": "",
                    "image_alt": "",
                    "redirect_link_url": ""
                },
                {
                    "image_url": "",
                    "image_alt": "",
                    "redirect_link_url": ""
                },
                {
                    "image_url": "",
                    "image_alt": "",
                    "redirect_link_url": ""
                },
                {
                    "image_url": "",
                    "image_alt": "",
                    "redirect_link_url": ""
                }
            ]
        }
    ]
}

Relevant Logs

No response

Browser(s) Affected

No response

OS(s) Affected

No response

Device(s) Affected

No response

AMP Version Affected

No response

leopuglia-a avatar Nov 14 '23 22:11 leopuglia-a

I suspect this is more of a feature request as we might not be supporting rendering amp-mustache now. The example you shared within playground works because it is on web, rather than embedded in gmail app. Are you seeing this across both iOS and Android?

ychsieh avatar Jan 22 '24 22:01 ychsieh