hardlounge/client/components/ParsedMessage.vue
2019-02-12 12:48:43 +02:00

15 lines
293 B
Vue

<script>
const parse = require("../js/libs/handlebars/parse");
export default {
functional: true,
name: "ParsedMessage",
props: {
message: Object,
},
render(createElement, context) {
return parse(context.props.message.text, context.props.message, createElement);
},
};
</script>