export function buildTwigTemplate(filename, snakeName, className, format) {
    const label = format === 'DEFAULT' ? 'STANDARD' : format;
    return `{#
/**
 * @file
 * ${filename}.twig
 * Format: ${label}
 *
 * Available variables:
 * - ${snakeName}__heading - the heading text for this component
 * - ${snakeName}__content - the body content of this component (typically text)
 *
 * Available blocks:
 * - ${snakeName}__content - override the content area with custom markup,
 *   for example: to embed an image or icon
 */
 #}
{% set ${snakeName}__base_class = '${className}' %}

<article class="{{ ${snakeName}__base_class }}">
  {% if ${snakeName}__heading %}
    <h2 class="{{ ${snakeName}__base_class }}__heading">{{ ${snakeName}__heading }}</h2>
  {% endif %}
  {% block ${snakeName}__content %}
    <div class="{{ ${snakeName}__base_class }}__content">
      {{ ${snakeName}__content }}
    </div>
  {% endblock %}
</article>
`;
}
