<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="248327" data-post-id="248327">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="AUGERClement" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/AUGERClement/120/20729_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  AUGERClement
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Can’t edit the post anymore, but just wanted to bring some informations about the render stuff.</p>
<p>It is possible to split the views used by a controller in multiples files, despite the mentionned mapping in the Phoenix documentation (CF second update of the earlier post). The thing is, your conn will automatically try to reach your default view (named after your controller) when calling render in said controller. However, using the put_view function in a pattern allow you to manually set the view file used by the pattern.</p>
<p>Ex:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">render(conn, "index.json", examens: examens) # Use default view

# Can become :
conn
|&gt; put_view(ExamenSecondView) # Replace the default associated view in plug
|&gt; render("index.json", examens: examens) # Use index from second view
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="248327" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/problems-with-the-join-in-my-api/47067/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-248327" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="248327"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>