<!-- Since this field produces html, we'll need to wrap it in three brackets -->
<!-- 'primo-copy' gives the div the same copy styles as copy rows on the page -->
<div class="primo-copy">
{{{ page_content }}}
</div>
{{#if show_contact}}
<address>
<a href="mailto:jon@doe.com">jon@doe.com</a><br>
<a href="tel:+13115552368">(311) 555-2368</a>
</address>
{{else}}
<h1>Unfortunately, we're currently unavailable for hire</h1>
{{/if}}
<a href="{{detail_url}}">See More Details</a>
<a href="{{cta.url}}">{{cta.title}}</a>
Use [Handlebars]() to wire up your fields
Use [Emmet]() to quickly write HTML (e.g. div>div>h1.headingand press Tab)
Nested styles are supported (using [postcss-nested]())
You can import any JS modules by name with import module from 'module-name' , where module-name is the module's name on [npm](). In the background, primo turns that into a request to [Skypack]() that looks like
primo uses the [Handlebars]() compiler to build HTML from field values. Once you create a field, you can access their values from within the component HTML using the field's ID.