{# @description Tabbed display surface for the show_code tag: live preview, Cotton source, and HTML output. #} {# @prop rendered:text | description:"The live, compiled component (safe HTML)." #} {# @prop code:text | description:"Escaped Cotton source for the Cotton tab." #} {# @prop html:text | description:"Escaped, prettified HTML output for the HTML tab." #} {% comment %} Rendered via render_to_string(), so plain Django + Alpine only (no c- tags) - safe to use while documenting the components themselves. {% endcomment %}
{{ rendered }}
{{ code }}