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

最终模板输出注释,没有引入各种资源 #12

Open
damoclesX opened this issue Aug 16, 2016 · 3 comments
Open

最终模板输出注释,没有引入各种资源 #12

damoclesX opened this issue Aug 16, 2016 · 3 comments

Comments

@damoclesX
Copy link

damoclesX commented Aug 16, 2016

最终模板输出类似下面的注释,没有引入资源

<!--f.r(widget/layout/base.blade.php)-->    
<!--f.r(widget/reply-list.blade.php)-->
<!--f.r(static/css/common.less)-->
<!--f.r(static/libs/vue.js)-->
<!--f.r(static/libs/fastclick.js)-->
<!--[FIS_CSS_LINKS_HOOK]--></head> 

经常出现这种情况,不知什么原因。
开始以为是fis-conf.js的配置错误,后面按照fis3 init laravel 拉下来的配置进行定制,还是会这样。

后面以为是目录结构的问题,后面也是按照模板的目录进行开发,还是会出现这种情况。

最诡异的是这样的html是正常的

<div class="mask">
        <div class="mask-content fs20">
            <ul class="handle">
                <li><a>取消</a></li>
            </ul>
        </div>
</div>

我修改html变成这个样子

<div class="mask">
        <div class="mask-content fs20">
            <ul class="handle">
                <li><a>取消</a></li>
            </ul>
            <ul class="handle">
                <li><a>取消</a></li>
            </ul>
        </div>
 </div>

或者修改成

<div class="mask">
        <div class="mask-content fs20">
            <ul class="handle">
                <li><a>取消</a></li>
                <li><a>取消</a></li>
            </ul>
        </div>
 </div>

就出现各种注释,请问有其他人遇到这个问题吗?

@2betop
Copy link
Contributor

2betop commented Aug 17, 2016

你看下你机器上的这段代码吧,是不是正则出问题了?我那没遇到过这个问题 https://github.com/fex-team/laravel-fis/blob/master/src/Fis/Resource.php#L540

@damoclesX
Copy link
Author

damoclesX commented Aug 25, 2016

正则是一样的。我跟踪了下,https://github.com/fex-team/laravel-fis/blob/master/src/Fis/Engines/HackedCompilerEngine.php#L15 这里$doneRendering返回的是false,就导致没有执行Fis::filter,这个要怎么解决呢?不是很清楚这里的渲染逻辑

@damoclesX
Copy link
Author

找到fex-team/laravel-fis#4这个issue,
qq 20160825161928

@section("fis_resource")前面加入空格或者换行可行
先提了个PR fex-team/fis3-preprocessor-extlang#6

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

No branches or pull requests

2 participants