加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails-3.1 – 使用HAML的Rails HTTP流

发布时间:2020-12-16 19:40:52 所属栏目:百科 来源:网络整理
导读:在rails中使用HAML项目的HTTP流似乎有问题.如果我使用ERB,它可以很好的工作.显然,我不是唯一一个有 this problem的人. 它不适用于将流放置在控制器顶部,或使用render:stream =真正的行动. 如何让HAML和HTTP串流播放很好? 更新:我已经在宝石页面here上打开
在rails中使用HAML项目的HTTP流似乎有问题.如果我使用ERB,它可以很好的工作.显然,我不是唯一一个有 this problem的人.

它不适用于将流放置在控制器顶部,或使用render:stream =>真正的行动.

如何让HAML和HTTP串流播放很好?

更新:我已经在宝石页面here上打开了一个问题.

解决方法

HAML尚未支持( source):

HTTP streaming is the sort of thing that would require a substantial
set of modifications to the core Haml engine. It’s only moderately
tricky to get it working even in basic cases,but when you factor in
things like the whitespace-eating operators it gets much more
difficult.

This isn’t something I’m opposed to in theory,but it’s also not something that’s high on my priority list given the difficulty of implementing it.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读