예제 #1
0
        public static string ParseImpl(IParseContext context, FormInfo formInfo, FormSettings formSettings, string theme)
        {
            ParseUtils.RegisterPage(context);

            var vueId = "vm_" + System.Guid.NewGuid().ToString().Replace("-", string.Empty);

            ParseUtils.RegisterFormCode(context, vueId, formInfo, formSettings);

            var templateHtml = !string.IsNullOrWhiteSpace(context.StlInnerXml) ? Main.Instance.ParseApi.ParseInnerXml(context.StlInnerXml, context) : ParseUtils.GetTemplateHtml(theme);

            return($@"
<div id=""{vueId}"" class=""normalize"">
    {templateHtml}
</div>
");
        }