Binding expressions flagged as invalid markup
-
I updated to the latest AMP for WordPress plugin yesterday, I’m using a custom theme built to use AMP.
I am using the amp-list element to dynamically call an REST service via JSON exposed via WordPress that was working fine before the upgrade. It uses binding expressions (handlebar syntax) to indicate which JSON elements to bind to the markup.
After upgrading, the plugin is flagging a binding expression within the amp-mustache template for the data returned for the list as invalid. Here’s the theme template’s php content with the issue:
Specifically, it doesn’t like the width attribute’s {{width}} value. The JSON structure returned contains all of these attributes of course.
Thanks,
Jayme
- The topic ‘Binding expressions flagged as invalid markup’ is closed to new replies.