-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement SSR for amp-audio #523
Conversation
@westonruter I would like to know your opinion about the boilerplate error. Should I remove the error for amp-audio or keep it as it is? |
I'm not sure I understand. As I understand, there still should be an error raised for |
Oh I see. You're adding it if it isn't present originally. In that case, no, the error probably isn't necessary. |
Sorry for the confusion. I would like to know your opinion about these two lines. Should I remove them or keep them as it? $errors->add(Error\CannotRemoveBoilerplate::fromAmpAudio($ampElement));
$canRemoveBoilerplate = false; |
Co-authored-by: Weston Ruter <westonruter@google.com>
It seems to me that they can be removed, no? I don't see any reason why the error would be needed if we can always SSR the |
I'm not sure about that. The comment says, |
What I mean is that if amp-toolbox-php is always adding the |
I've updated the code and removed the error for amp-audio. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Co-authored-by: Weston Ruter <westonruter@google.com>
Fixes #518
This PR adds the SSR support for amp-audio extension. It simply adds
<audio controls></audio>
element if amp-audio extension is present.