<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Load/Import HTML file into Template in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Load-Import-HTML-file-into-Template/m-p/265577#M11917</link>
    <description>&lt;P&gt;Solved, using partial templates and include them. Easy solution but the documentation is so bad structured that is hard to find what we need. If someone is interested, to include a partial template just do the following:&lt;/P&gt;&lt;P&gt;{% include "Your/URL/to/the_template.html" %}&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2019 11:45:35 GMT</pubDate>
    <dc:creator>albertsg</dc:creator>
    <dc:date>2019-04-17T11:45:35Z</dc:date>
    <item>
      <title>Load/Import HTML file into Template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Load-Import-HTML-file-into-Template/m-p/265414#M11902</link>
      <description>&lt;P&gt;Hi guys.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a question regarding Templates and HubL.&lt;/P&gt;&lt;P&gt;If I'm &lt;STRONG&gt;not&lt;/STRONG&gt; using a drag and drop template, is there a way to load an HTML file into the template?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Imagine that I need to load a piece of code or another depending on a parameter in the URL. For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;if url contains '/es/' then&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; load_html_1&lt;/P&gt;&lt;P&gt;else&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; load_html_2&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible? If yes, how can I do it with HubL? I cannot find anything in the documentation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And no, I don't want to use custom modules. I'm talking about calling a template from another template.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 11:36:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Load-Import-HTML-file-into-Template/m-p/265414#M11902</guid>
      <dc:creator>albertsg</dc:creator>
      <dc:date>2019-04-17T11:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Load/Import HTML file into Template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Load-Import-HTML-file-into-Template/m-p/265577#M11917</link>
      <description>&lt;P&gt;Solved, using partial templates and include them. Easy solution but the documentation is so bad structured that is hard to find what we need. If someone is interested, to include a partial template just do the following:&lt;/P&gt;&lt;P&gt;{% include "Your/URL/to/the_template.html" %}&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2019 11:45:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Load-Import-HTML-file-into-Template/m-p/265577#M11917</guid>
      <dc:creator>albertsg</dc:creator>
      <dc:date>2019-04-17T11:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: Load/Import HTML file into Template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Load-Import-HTML-file-into-Template/m-p/298533#M14089</link>
      <description>&lt;P&gt;Hi, can you provide the steps for uploading an html code into an existing template please?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 08:23:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Load-Import-HTML-file-into-Template/m-p/298533#M14089</guid>
      <dc:creator>Kmakri</dc:creator>
      <dc:date>2019-10-24T08:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Load/Import HTML file into Template</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Load-Import-HTML-file-into-Template/m-p/317197#M15213</link>
      <description>&lt;P&gt;Sorry for the late reply, didn't see your question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I already provided the solution, just create a partial template with your code and add it to the main template using the following:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{% include "Your/URL/to/the_template.html" %}&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 11:02:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Load-Import-HTML-file-into-Template/m-p/317197#M15213</guid>
      <dc:creator>albertsg</dc:creator>
      <dc:date>2020-02-06T11:02:19Z</dc:date>
    </item>
  </channel>
</rss>

