// 1. define some data
const aPeople = [
{firstName: 'Joe', lastName: 'Smith'},
{firstName: 'Bold is unsafe',lastName: 'Vanderbilt'},
{firstName: 'Sam', lastName: 'Anderson'} ];
// 2. define a "named template" (peopleTemplate) and pass in and use your data variable (person)
// It's just javascript, so you can call other/regular javascript functions ( like sanitize() )
const peopleTemplate = ( person ) => template`
`;
// 4. render and insert your template in one step with handy helper functions
the last two parameters identify the target object and where relative to
that object you want to insert your data (default is replace)
insertTemplate( aPeople, peopleTemplate, '#arrayRenderedOutput', 'prefix' );