Produktdata (JSON)
Contentserv (REST)
Produkt-ID anges i URL, t.ex.
http://localhost:3456/?id=133721
(valfritt &template=exempel-mall.html).
Inloggning anges i en dialog och kan sparas lokalt i webbläsaren.
Redigera data/response_item_example.json och spara — sidan uppdateras
automatiskt när servern körs (npm start).
HTML-mall
Placeholdersyntax
{{ART_ARTNR}}— matchar attribut medName(text escapeas){{{ART_TEXT}}}— samma match,FormattedValueinfogas rå{{LABEL}}— special: värdet frånProduct.Label{{ART_PRIMARY_IMAGE}}— special: URL frånLinks[].Preview
Attributmappning
0Ladda mall och JSON för att se mappning.