# How to render decorated cooked post content in a template

**URL:** https://meta.discourse.org/t/how-to-render-decorated-cooked-post-content-in-a-template/203962
**Category:** General
**Created:** [September 19, 2021, 4:33pm UTC](https://meta.discourse.org/t/how-to-render-decorated-cooked-post-content-in-a-template/203962 "2021-09-19T16:33:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![JonathanShaw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathanshaw/32/532672_2.png) [@JonathanShaw](https://meta.discourse.org/u/JonathanShaw)
#### Post date: [September 19, 2021, 4:33pm UTC](https://meta.discourse.org/t/how-to-render-decorated-cooked-post-content-in-a-template/203962/1 "2021-09-19T16:33:21Z")

</div>

I want to render the decorated cooked content of a post in a template. Simple `{{{ post.cooked }}}` works but doesn’t give me the decoration.

The decoration happens in the post-contents widget which is loaded by the post widget, so I thought I needed to mount the widget.

`{{mount-widget widget="post" args=(hash post)}}` throws an error because something is expecting a model on the post.

`{{mount-widget widget="post-contents" args=(hash post)}}` just renders “undefined” as the cooked body.

Any ideas?
