<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>extjs (extjs)</title>
    <link>https://ruby-china.org/extjs</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>Publify 是如何将 Engine Mount 的？</title>
      <description>&lt;p&gt;看了一下著名的 RoR 开源项目 Publify ( &lt;a href="https://github.com/publify/publify" rel="nofollow" target="_blank" title=""&gt;https://github.com/publify/publify&lt;/a&gt; ) 的源码，发现它把核心逻辑写在了 publify_core 的 engine 中。按照 Rails 文档，engine 需要在父项目中的 &lt;code&gt;config/routes&lt;/code&gt; 中显式加载&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;mount Blorgh::Engine, at: "/blog"
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;然而 Publify 项目中的 &lt;code&gt;config/routes&lt;/code&gt; 并没有写加载逻辑。请问它是如何加载 engine 的？&lt;/p&gt;</description>
      <author>extjs</author>
      <pubDate>Fri, 20 Oct 2017 17:35:27 +0800</pubDate>
      <link>https://ruby-china.org/topics/34410</link>
      <guid>https://ruby-china.org/topics/34410</guid>
    </item>
  </channel>
</rss>
