# Clean HTML Style Views Plugin

This Drupal module provides a **Clean HTML Style** format for **Views** displays. It allows you to apply customizable CSS classes to the main wrapper, rows, and columns within the Views output, all while maintaining minimal HTML markup. The module removes unnecessary `<div>` tags, ensuring clean and efficient HTML.

## Features

- **Customizable Wrapper, Row, and Column Classes**: Define CSS classes for the main wrapper, rows, and columns.
- **Minimal HTML Output**: Ensures clean HTML without excessive markup.
- **Simple Configuration**: Easily configurable via the Drupal admin interface or directly within the Views settings.
- **Flexible Integration**: Works with Views to enhance styling without interfering with the content structure.

## Installation

1. Download and install the **Clean HTML Style** module.
2. Enable the module via the Drupal admin interface or use Drush:
   drush en clean_html_style


Configuration

After enabling the module:

    Go to Structure > Views > Select or create a view.
    Edit or create a View display (e.g., Page, Block).
    Under Format, choose Clean HTML Style from the dropdown.
    Optionally, configure the following settings:
        Main Wrapper Class: Add a custom CSS class for the wrapper around all rows.
        Row Class: Add a custom CSS class for each row.
        Column Class: Add a custom CSS class for each column in the row.

Example Usage

After configuring the Clean HTML Style, the module will output rows with the configured classes. For instance, if the wrapper_class is set to main-wrapper and the row_class to row-style, the output will look like this:

<div class="main-wrapper">
  <div class="row-style">
    <div>Row Content 1</div>
  </div>
  <div class="row-style">
    <div>Row Content 2</div>
  </div>
</div>

Template Structure

In the template file, you can use the following structure to render the rows and wrapper:

{# Check for main wrapper attributes and render it. #}
{% if rows.main_wrapper_attributes %}
  <div{{ rows.main_wrapper_attributes }}>
{% endif %}

  {% for row in rows %}
    {% if row.row_attributes %}
      <div{{ row.row_attributes }}>
    {% endif %}
    
    {{ row.content }}
    
    {% if row.row_attributes %}
      </div>
    {% endif %}
  {% endfor %}

{% if rows.main_wrapper_attributes %}
  </div>
{% endif %}

