Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG:PreviewController.cs的fileContentBuilder 和contentBuilder错误导致单页模板的标签未解析 #835

Open
nhren opened this issue Jun 9, 2018 · 2 comments
Labels
BUG

Comments

@nhren
Copy link

@nhren nhren commented Jun 9, 2018

var contentBuilder = new StringBuilder(TemplateManager.GetTemplateContent(siteInfo, templateInfo));

        if (templateInfo.TemplateType == TemplateType.FileTemplate)           //单页
        {
            var fileContentBuilder = new StringBuilder(TemplateManager.GetTemplateContent(siteInfo, templateInfo));
            Parser.Parse(pageInfo, contextInfo, contentBuilder, visualInfo.FilePath, true);
            return Response(fileContentBuilder.ToString(), siteInfo);
        }

第一句读到ContentBuilder 里了。单页判断又读了一次到fileContentBuilder 里。 Parser.Parse的是contentBuilder,却返回了未做Parse的fileContentBuilder 。。

望修正~~~

@starlying

This comment has been minimized.

Copy link
Contributor

@starlying starlying commented Jun 11, 2018

好的,我们查一下代码

@starlying starlying added 待验证 BUG and removed 待验证 labels Jun 11, 2018
@starlying

This comment has been minimized.

Copy link
Contributor

@starlying starlying commented Jun 11, 2018

已修改,感谢反馈

@starlying starlying mentioned this issue Jun 11, 2018
37 of 37 tasks complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.