Elements

The Edgemesh® Server HTML parser adds some custom elements to make working with the Edgemesh® Platform as easy as possible for developers.


dynamic

The dynamic element tells the Edgemesh® Parser that the content within the element should be considered dynamic and unsafe to cache. It can also be used to fetch components from other sources (URLs) and injected into your page.

Format
<dynamic src?={string}></dynamic>
Example
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Store</title>
</head>
<body>
<div class="title">My Store</div>
<dynamic>
<div id="customer-name">{{ customer.name }}</div>
</dynamic>
<dynamic src='/custom-view'><dynamic>
</body>
</html>
Attributes
src The source (URL) to fetch the dynamic content from. Content will be fetched at the edge and expanded along with all other dynamic fragments. Any content inside the dynamic element will be replaced by the content from the source's text response.

Made withby Edgemesh Corporation