themes-terminal/blocks/code_console.ninjatpl

2 lines
409 B
Plaintext

{% if command or output %}<div class="w-full max-w-4xl mx-auto my-6 px-4"><div class="code-console" data-block="terminal:code_console" data-language="{{ language|default:"shell" }}">{% if command %}<div class="cmd-line"><span class="cmd-prompt">{{ prompt|default:"$" }}</span><span class="cmd-text">{{ command }}</span></div>{% endif %}{% if output %}<pre>{{ output }}</pre>{% endif %}</div></div>{% endif %}