I am rendering some headings using twig and want to know if there is a better and more readable way of doing the following...
<{{ block.headingType }} class="measure-wide">{{ block.headingText }}</{{ block.headingType }}>
{{ block.headingType }}
is the value of the heading selected in the editor. The values are h2, h3, h4, h5 etc.
The way the HTML headings are templated looks ugly (even though the rendering works). Is there a better way of rendering out the heading tags in twig based on the value selected?