<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>majingwei (马经纬)</title>
    <link>https://ruby-china.org/majingwei</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>新手请教，coffee 文件中怎么使用分页插件？</title>
      <description>&lt;p&gt;我手上有个比较旧的工程，在其中一个 coffee 文件中有个列表的数据太多，每一条数据都会渲染出一组 div，数据太多了界面就会卡顿，现在打算分页处理，但是我遇到一个问题，我在.coffee 文件中使用 paginate 插件会报错，看上去这个插件只能在.erb 文件中使用，请问有什么办法可以在 coffee 中分页吗？
paginate 使用报错：
&lt;img src="https://l.ruby-china.com/photo/majingwei/19606496-d495-42ce-8989-2d1329805fe3.png!large" title="" alt=""&gt;&lt;/p&gt;

&lt;p&gt;每条数据都会渲染的一组 div：
&lt;img src="https://l.ruby-china.com/photo/majingwei/a489018a-adad-4dfb-8b3f-b0f0c95b87d5.png!large" title="" alt=""&gt;&lt;/p&gt;</description>
      <author>majingwei</author>
      <pubDate>Mon, 11 Jul 2022 15:29:16 +0800</pubDate>
      <link>https://ruby-china.org/topics/42513</link>
      <guid>https://ruby-china.org/topics/42513</guid>
    </item>
  </channel>
</rss>
