hardlounge/client/components/ParsedMessage.vue

15 lines
290 B
Vue
Raw Normal View History

<script>
const parse = require("../js/libs/handlebars/parse");
export default {
name: "ParsedMessage",
2018-07-12 08:26:12 +00:00
functional: true,
props: {
message: Object,
},
render(createElement, context) {
2018-07-11 18:00:12 +00:00
return parse(context.props.message.text, context.props.message, createElement);
},
};
</script>