title: Rendering a partial in liquid layout (Rails3)
body: <p>I have a liquid template where I need to render a partial inside that.</p>
  
  <p>Please note <code>@current_page.page_layout.content</code> will load the content from the DB.</p>
  
  <p>My liquid layout file is as follows:</p>
  
  <pre><code>#layouts/public.html.erb
  &lt;%= Liquid::Template.parse(@current_page.page_layout.content).
  render('page_content' =&gt; yield, 'page_title' =&gt; yield(:title)) %&gt;
  </code></pre>
  
  <p>and following is my code, which includes the partial as well</p>
  
  <pre><code>{{page_content}}
  
  {% include 'this_is_the_partial_name' %}
  </code></pre>
  
  <p>and I'm getting this error</p>
  
  <pre><code>Liquid error: This liquid context does not allow includes.
  </code></pre>
  
  <p>I tried searching the web and <a href="https://groups.google.com/forum/?fromgroups=#!topic/liquid-templates/IJpYVFaPwRo" rel="nofollow noreferrer">found this solution</a>, but still I'm not sure what to enter for this code:</p>
  
  <pre><code>Liquid::Template.file_system = 
  Liquid::LocalFileSystem.new(template_path) 
  liquid = Liquid::Template.parse(template) 
  </code></pre>