Files
2023-04-11 17:17:38 +03:00

32 lines
899 B
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="node_modules/@divkitframework/divkit/dist/client.css">
</head>
<body>
<div id="root">[% html %]</div>
<script src="node_modules/@divkitframework/divkit/dist/browser/client-hydratable.js"></script>
<script type="text/json" id="json">
[% json %]
</script>
<script>
(() => {
const json = JSON.parse(document.querySelector('#json').textContent);
Ya.Divkit.render({
id: 'test',
target: document.querySelector('#root'),
hydrate: true,
json
});
})();
</script>
</body>
</html>