packages/twig-renderer/twig-renderer.js
async function renderString(templateString, data = {}, keepAlive = false) {
  await prep(keepAlive);
  const results = await twigRenderer.renderString(templateString, data);
  // console.log({ results });
  return results;
}
async function renderString(templateString, data = {}, keepAlive = false) {
  await prep(keepAlive);
  const results = await twigRenderer.renderString(templateString, data);
  // console.log({ results });
  return results;
}
async function renderString ( templateString , data = { } , keepAlive = false ) { await prep ( keepAlive ) ; const results = await twigRenderer . renderString ( templateString , data ) ; // console.log({ results }); return results ; }
Render Twig String
@param {string} templateString - String that is a Twig template (i.e. `<p>{{ text }}</p>`)
@param {Object} data - Optional data to pass to template
@param {Boolean} keepAlive - Optionally tell the Twig renderer service to keep alive to help speed up requests
@return {Promise<{{ ok: boolean, html: string, message: string}}>} - Results of render
Render Twig String