Skip to content

Instantly share code, notes, and snippets.

@egoist egoist/ream.md
Last active Feb 7, 2017

Embed
What would you like to do?

server.js:

import ream from 'ream'

const app = ream({
  pageDirectory: 'pages'
})

app.get('/', (req, res) => {
  res.render('index', {name: 'egoist'})
})

pages/index.vue

<template>
  <h1>hello {{ name }}</h1>
</template>

<script>
  export default {
    props: ['name']
  }
</script>

You can run it with:

ream server.js
# or production mode
ream start server.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.