nenb example - using vue server-side rendering

source file

Below is a data block, in toml format. It will be used as the data used to create the Vue object. The name attribute is set to myVueData.

message = "this message was generated by data"

lang toml
name myVueData
showAll true

Below is an html block with a render attribute set to vue, and a data attribute set to myVueData.

<div id="my-vue-app">
  You're going to love this: {{ message }}
</div>

lang html
render vue-ssr
data myVueData
showAll true
You're going to love this: this message was generated by data

We've also embedded a css block (not shown) to make the div pretty.


generated by nenb 0.0.1