Using Ember FastBoot
in Weird Ways
by 0xADADA
Boston Ember Community, June 18th 2019
Boston Ember Community, June 18th 2019
https://0xadada.pub (my internet house)
Many online retailers allow "from the manufacturer" or "below-the-fold" content— that is, content from the manufacturer describing their own product. Most often this is rich marketing text, images, and video.
iframewhat would work with these constraints? 🤔
iframe
iframe on pageiframe loads static HTML
config: The template
env: The content and data bindings
{
"config": {
"$vbox": [{
"$hbox": [{
"$text": "Your name: "
},
{
"$input": {
"$bind": "name"
}
}
]
},
{
"$text": {
"$join": [{
"$bind": "greeting"
},
{
"$bind": "name"
}
]
}
}
]
},
"env": {
"greeting": "Hello, ",
"name": "CHANGEME"
}
}
$ ember new my-project --yarn
$ ember install ember-cli-fastboot
$ yarn add -D fastboot-app-server
$ node server.js
server.js
fastboot-app-server
in production 💣💥
document, no
window objects.
ember-cli-fastboot-testing for testing server FastBootpackage.json "dependencies" block
$ npm home system-font-i18n-css