Skip to content

Instantly share code, notes, and snippets.

@sivakumar-kailasam
Created April 18, 2018 21:00
Show Gist options
  • Save sivakumar-kailasam/967c47f09b2daa9664bece1a722c2302 to your computer and use it in GitHub Desktop.
Save sivakumar-kailasam/967c47f09b2daa9664bece1a722c2302 to your computer and use it in GitHub Desktop.
Notes for ember cms

My pipeline 1) parses content dirs you configure in e-cli-build: https://github.com/anulman/cook-for-mom/blob/feat/markdown-yml/ember-cli-build.js#L17-L20 2) Passes the resulting components through e-cli-htmlbars (by virtue of including them in the treeForTemplate); I'm personally preprocessing these between hyde & e-cli-htmlbars to support handlebars / ember env in my templates: https://github.com/anulman/cook-for-mom/blob/feat/markdown-yml/lib/ember-cli-markdownbars/index.js#L16-L40 3) splits remote templates (currently hardcoded, can be made configurable) into the root dir, ie to be distributed in the public tree 4) The json & content can be fetched from a predictable path:

  1. It's Fastboot-safe: https://github.com/anulman/cook-for-mom/blob/feat/markdown-yml/lib/ember-async-layout/app/services/async-resource.js#L34-L67 (edited)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment