When I work with CSS frameworks like Bootstrap or Materialize, I often find myself repeatedly typing the same HTML code:
<div class="row">
<div class="col s12">
<!-- Some text/ a button / something -->
</div>
</div>
Having to use three tags just to put a single item, such as a paragraph or a button, on its own row leads to unnecessary bloat in my HTML code over time.
I have thought about creating an angular directive to streamline it to one extra tag instead of two, but I feel like that might not be the most elegant solution. Does anyone have any better ideas for resolving this issue?