This document is intended as a "scratchpad" to think through Ember-based systems.
- MUST have a content store
- Content MAY be stored with source
- Content models MAY be related to other, differently-formed content models
- MUST support POJO content metadata
- MUST NOT store content in app bundle
- MUST support lazy-loading item content vs metadata
- MUST support components, actions, state-passing to loaded content
- Public example at https://cookformom.com/lessons/knife-skills
- Content is generated from
.mbs
(markdownbars :) files in arbitrary directory (link) - Critical metadata may be fetched in route hooks: (link)
- While this example uses an ember-data model, this is not a requirement. You can consume
asyncResource.fetch
directly (link)
- While this example uses an ember-data model, this is not a requirement. You can consume
- Async content is easy to use:
Here's a relevant diff
ember-cli-hyde
: published 0.2.4- Supports passing arbitrary dirs to parser, which collects
.yml
,.md
,.mbs
files and outputs an analogous tree with the resulting.json
metadata &.m*
content - Supports pre-configuring prember URLs to content paths
- Files are added to + preprocessed in the
template
tree
- Supports passing arbitrary dirs to parser, which collects
ember-cli-markdownbars
: unpublished, in-repo addon in the Cook For Mom project- Supports handlebars syntax in Markdown content
- Works for any
.mbs
content in thetemplate
tree
ember-async-layout
: unpublished, in-repo addon in the Cook For Mom project- FastBoot-safe tools for fetching arbitrary content; useful when developing on your fs, but publishing to CDN
- Includes easy fn to download and register precompiled template files from trusted remote hosts
- Includes lightweight, tagless component to present downloaded templates