You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
565 B
24 lines
565 B
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title></title>
|
|
</head>
|
|
<body>
|
|
<script src="../../../dist/vue.min.js"></script>
|
|
<script src="../../../packages/vue-server-renderer/basic.js"></script>
|
|
|
|
<div id="result">wtf</div>
|
|
|
|
<script>
|
|
var vm = new Vue({
|
|
data: { msg: 'foo' },
|
|
template: '<div>{{ msg }}</div>'
|
|
})
|
|
|
|
renderVueComponentToString(vm, function (err, result) {
|
|
document.getElementById('result').textContent = err && err.toString() || result
|
|
})
|
|
</script>
|
|
</body>
|
|
</html>
|
|
|