mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
13 lines
411 B
JavaScript
13 lines
411 B
JavaScript
|
/* jshint ignore:start */
|
||
|
// this has to be a node style module as it's imported by the front end and ember.
|
||
|
// a card has to have an editor object, and an HTML object. In the future we might have AMP and Text (for FTS) renderers.
|
||
|
|
||
|
module.exports = {
|
||
|
name: 'image-card',
|
||
|
render: function(opts) {
|
||
|
return '<img src="' + opts.payload.img + '" />';
|
||
|
}
|
||
|
};
|
||
|
|
||
|
/* jshint ignore:end */
|