2019-11-29 01:39:35 +08:00
|
|
|
import toml from "./data.toml";
|
|
|
|
import yaml from "./data.yaml";
|
2019-11-29 23:15:04 +08:00
|
|
|
import json from "./data.json5";
|
2019-11-29 01:12:11 +08:00
|
|
|
|
2019-11-29 01:39:35 +08:00
|
|
|
document.querySelector('#app').innerHTML = [toml, yaml, json].map(data => `
|
2019-11-29 01:12:11 +08:00
|
|
|
<h1>${data.title}</h1>
|
|
|
|
<div>${data.owner.name}</div>
|
|
|
|
<div>${data.owner.organization}</div>
|
|
|
|
<div>${data.owner.bio}</div>
|
|
|
|
<div>${data.owner.dob}</div>
|
2019-11-29 01:39:35 +08:00
|
|
|
`).join('<br><br>');
|