View vue-dom.js
import {render} from 'vue-dom'
const App = {
template: '<h1>hello world</h1>'
}
render(App, '#app')
// on the server
View vbuild.md

vbuild should be a dependency in the desktop app's app folder.

View path-extract.js
const extract = require('path-extract')
const params = extract('/user/:username', '/user/egoist')
console.log(params)
//=>
{
username: 'egoist'
}
View ream.md

server.js:

import ream from 'ream'

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

app.get('/', (req, res) => {
View reapi.js
const reapi = require('reapi')
reapi({
view: {
'/': (req, res) => {
res.send
}
}
})
View tooling-future.bash
tooling react build
# resolve tooling-react
tooling build
# resolve tooling/lib/build
tooling dev
# resolve tooling/lib/dev
View adonuxt.sao.js
module.exports = {
template: 'handlebars',
templateOptions: {
helpers: {
raw: function(options) {
return options.fn(this)
}
}
},
prompts: {
View sadoc.md

a server for serving docs

./source/a.md ./source/b.md

./page/a

or use next.js

View styled-html.js
const color = 'red'
const App = styled.div`{
color: ${color};
}`
App.innerHTML = 'hello world'
document.body.appendChild(App)
View elx.js
import Elx, {h} from 'elx'
class Button extends Elx {
state = {
count: 0
}
increment = () => {
this.set('count', this.state.count + 1)
}