Skip to content

Commit

Permalink
doc: Mention atom rendering options
Browse files Browse the repository at this point in the history
  • Loading branch information
bantic committed Feb 9, 2017
1 parent 8a39f36 commit f41c185
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ export default RenderMobiledoc.extend({
});
```

#### Render mobiledoc with atoms, using ember components to render atoms

This works the same way as rendering mobiledoc with ember components for cards.
To pass atom names to the renderer, use the `atomNames` property, e.g.:
```hbs
{{! myAtomNames is an array of atom names, e.g. ['mention-atom'] }}
{{render-mobiledoc mobiledoc=myMobileDoc atomNames=myAtomNames}}
```

To customize atom lookup, extend the `render-mobiledoc` component and override
its `atomNameToComponentName` method.

#### Use mobiledoc-dom-renderer directly

This addon provides the mobiledoc-dom-renderer directly. Most of the time
Expand Down

0 comments on commit f41c185

Please sign in to comment.