2019-09-09 19:29:27 +02:00
|
|
|
|
2019-09-09 20:18:24 +02:00
|
|
|
var template = new plate.Template(jinja_template)
|
|
|
|
var context = jsyaml.load(document.getElementById("yaml_data").innerHTML);
|
2019-09-09 19:29:27 +02:00
|
|
|
|
2019-09-09 20:18:24 +02:00
|
|
|
|
|
|
|
|
|
|
|
console.log(yaml_data);
|
|
|
|
|
|
|
|
template.render(context, function(err, data) {
|
|
|
|
if (err) throw err;
|
|
|
|
document.getElementById("my_card").innerHTML = data;
|
|
|
|
// document.write(data);
|
2019-09-09 19:29:27 +02:00
|
|
|
})
|