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

🎨 解决 include 标签在重定向了标准输入输出后无法正确寻找模板位置的问题。 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

RunsTp
Copy link

@RunsTp RunsTp commented Mar 12, 2019

您好流年, 我是一名单独使用 think-template 模板引擎的开发者。
我目前在使用EasySwoole3 这个框架,我发现当swoole重定向标准输入输出会导致无法正确的识别include文件地址。

我简单的通过单独给include方法添加路径前缀(以config中的view_path为前缀)来支持适配。
如果您觉得不合适可以直接拒绝,感谢。

@liu21st
Copy link
Member

liu21st commented Mar 26, 2019

这个地方强制使用view_path参数配置 可能会有其它的问题,在parseTemplateFile方法中还有判断view_base喷子参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants