Inserting dynamic data into a manifest.json

Im trying to use the data from my server connect to render in my manifest.json file.

PHP server model

The manifest is in my header.

<link rel="manifest" href="manifest.json">

At the top of my page i have
<html is="dmx-app" id="as" >

Say i have dynamic data {{[0].name}} i tried to insert this in the json file, but it renders on the page as {{[0].name}}. but outside of the json it “renders” perfectly.

my json file

      "lang": "en",
      "dir": "ltr",
      "name": "{{[0].name}}",
      "short_name": "{{[0].name}}",
      "background_color": "red"

Must i maybe add a delay before loading / linking the <link rel="manifest" href="manifest.json">

Community Page
Last updated: