Instruments
Utilities
Most applications have markup that has no relationship to its content but is important to display the inner HTML in a structured way. Good examples are the grid helper classes that Foundation and Boostrap provide.
To achieve the same goal, Veams provides a Utility
instrument and powerful set of Handlebars helper.
Examples Utilities are:
- Grid systems classes
- Multiple sections in regions
You are not required to use Utilities. Using them is totally up to you.
Why use Utilities?
Utilities simplify the differentiation between Components
and helper markup.
HTML Example of Grid System
<div class="u-grid-row">
<div class="is-grid-col is-col-mobile-p-12 is-col-tablet-l-6">
</div>
<div class="is-grid-col is-col-mobile-p-12 is-col-tablet-l-6">
</div>
<div class="is-grid-col is-col-mobile-p-12 is-col-tablet-l-6">
</div>
</div>
Grid Row Class in Handlebars
<div class="u-grid-row is-collapsed">
{{{yield}}}
</div>
Grid Column in Handlebars
<div class="u-grid-col{{#if props.colClasses}} {{props.colClasses}}{{/if}}">
{{{yield}}}
</div>