Files
olivierauverlot 29d56fa204 Refactoring of title and code components + documentation of these components (#224)
* New prefix and suffix attributes to create prepended and appended form fields

* Refactoring of code and title components. Documentation of code and title components.

* corrections

---------

Co-authored-by: Olivier Auverlot <oauv@duck.com>
2024-02-17 10:55:42 +01:00

8 lines
397 B
Handlebars

<div class="code-component my-1 {{class}}" {{#if id}}id="{{id}}"{{/if}}>
{{#each_row}}
{{#if title}}<h2>{{title}}</h2>{{/if}}
{{#if description}}<p>{{description}}</p>{{else}}{{#if description_md}}{{{markdown description_md}}}{{/if}}{{/if}}
<pre class="mb-0"><code {{#if language}}class="language-{{language}}"{{/if}}>{{contents}}</code></pre>
{{/each_row}}
</div>