/// <summary>
        /// Replaces the base placeholders
        /// </summary>
        /// <param name="errorCollection">Error collection</param>
        /// <param name="code">Code to fill</param>
        /// <param name="data">Dialog Step Data</param>
        /// <param name="nextStep">Next step in the dialog</param>
        /// <param name="flexFieldObject">Flex field object to which the dialog belongs</param>
        /// <returns>Base placeholders</returns>
        public async Task <string> ReplaceBasePlaceholders(ExportPlaceholderErrorCollection errorCollection, string code, ExportDialogData data, ExportDialogData nextStep, FlexFieldObject flexFieldObject)
        {
            Template parsedTemplate = ScribanParsingUtil.ParseTemplate(code, _errorCollection);

            if (parsedTemplate == null)
            {
                return(code);
            }

            ScribanDialogStepBaseDataWithNextNode nodeData = GetBaseNodeData(data, nextStep, flexFieldObject);
            TemplateContext context = BuildTemplateContext(nodeData);

            return(await parsedTemplate.RenderAsync(context));
        }
 /// <summary>
 /// Resets the step rendering values
 /// </summary>
 public void ResetStepRenderingValues()
 {
     _nextStepNodeData = null;
 }