<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Velocity vs Freemarker</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=37759412" />
  <subtitle>Velocity vs Freemarker</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=37759412</id>
  <updated>2026-04-04T21:43:14Z</updated>
  <dc:date>2026-04-04T21:43:14Z</dc:date>
  <entry>
    <title>RE: Velocity vs Freemarker</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37797932" />
    <author>
      <name>Patrick Hisshion</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37797932</id>
    <updated>2014-05-14T14:58:00Z</updated>
    <published>2014-05-14T14:58:00Z</published>
    <summary type="html">&lt;blockquote&gt;You have to remember that the browser may cache your css/js files. Remember to clear your browser&amp;#39;s cache during development. &lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Unfortunately I don&amp;#39;t believe this is the case, as I have already cleared my browser cache, as well as cleaned the tomcat cache. &lt;br /&gt;&lt;br /&gt;Yet still I am inherting rules from my test.css file which is now not imported through the custom.css file. So this shouldn&amp;#39;t be happening right?</summary>
    <dc:creator>Patrick Hisshion</dc:creator>
    <dc:date>2014-05-14T14:58:00Z</dc:date>
  </entry>
  <entry>
    <title>RE: Velocity vs Freemarker</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37798913" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37798913</id>
    <updated>2014-05-14T14:37:57Z</updated>
    <published>2014-05-14T14:37:57Z</published>
    <summary type="html">&lt;div class="quote-title"&gt;Patrick Hisshion:&lt;/div&gt;&lt;blockquote&gt;&lt;blockquote&gt;Remember that both the theme and the layout are processed on every single page refresh. You want to make them as light as possible to minimize the performance impact.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Do you mean I don&amp;#39;t have to deploy when I make a change to my .css files? The change will be made automatically? &lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;No, it&amp;#39;s minimizing the complexity in the theme/layout.  Obviously w/ velocity or fm templates you can get pretty fancy.  Look at the navigation.vm file, for example.  It&amp;#39;s looping through the page items to add menu links.  This kind of thing is necessary, but you have to remember it&amp;#39;s getting processed on every page refresh.  If you added more loops, more conditional logic, etc., this adds to your page rendering time.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Also I&amp;#39;m having quite a problem with my css. Currently the way I have done it is, in the _diff folder I have made a custom.css file with an import to test.css. test.css is where I made the majority of my changes. I decided to remove the import to test.css but the css rules from test.css are still being applied to the page! Even after I had redeployed!&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;You have to remember that the browser may cache your css/js files.  Remember to clear your browser&amp;#39;s cache during development.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2014-05-14T14:37:57Z</dc:date>
  </entry>
  <entry>
    <title>RE: Velocity vs Freemarker</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37797519" />
    <author>
      <name>Patrick Hisshion</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37797519</id>
    <updated>2014-05-14T14:15:50Z</updated>
    <published>2014-05-14T14:15:50Z</published>
    <summary type="html">Thanks again for the informative response.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;Remember that both the theme and the layout are processed on every single page refresh. You want to make them as light as possible to minimize the performance impact.&lt;/blockquote&gt;&lt;br /&gt;&lt;br /&gt;Do you mean I don&amp;#39;t have to deploy when I make a change to my .css files? The change will be made automatically? &lt;br /&gt;&lt;br /&gt;Also I&amp;#39;m having quite a problem with my css. Currently the way I have done it is, in the _diff folder I have made a custom.css file with an import to test.css. test.css is where I made the majority of my changes. I decided to remove the import to test.css but the css rules from test.css are still being applied to the page! Even after I had redeployed!</summary>
    <dc:creator>Patrick Hisshion</dc:creator>
    <dc:date>2014-05-14T14:15:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: Velocity vs Freemarker</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37773458" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37773458</id>
    <updated>2014-05-14T00:07:39Z</updated>
    <published>2014-05-14T00:07:39Z</published>
    <summary type="html">Yes and yes.&lt;br /&gt;&lt;br /&gt;All of your changes need to be in the _diff folder.  Otherwise, they may get overwritten when the SDK copies in the parent files.&lt;br /&gt;&lt;br /&gt;Remember that both the theme and the layout are processed on every single page refresh.  You want to make them as light as possible to minimize the performance impact.&lt;br /&gt;&lt;br /&gt;So while good programming sense will want you to break up the files into manageable and logical pieces, in the long run this can work against you at runtime.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2014-05-14T00:07:39Z</dc:date>
  </entry>
  <entry>
    <title>RE: Velocity vs Freemarker</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37770652" />
    <author>
      <name>Patrick Hisshion</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37770652</id>
    <updated>2014-05-13T22:04:54Z</updated>
    <published>2014-05-13T22:04:54Z</published>
    <summary type="html">Thanks for the response. I was wondering if you could answer a followup question. Say I wanted to edit the portal_normal.ftl. Should I just copy that file into the _diff folder and edit it there?&lt;br /&gt;&lt;br /&gt;If I wanted to make new .ftl files, do I create say, example.ftl and include these is various places within portal_normal.ftl?&lt;br /&gt;&lt;br /&gt;Cheers!</summary>
    <dc:creator>Patrick Hisshion</dc:creator>
    <dc:date>2014-05-13T22:04:54Z</dc:date>
  </entry>
  <entry>
    <title>RE: Velocity vs Freemarker</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37765573" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37765573</id>
    <updated>2014-05-13T18:55:09Z</updated>
    <published>2014-05-13T18:55:09Z</published>
    <summary type="html">Use whichever templating language you feel comfortable with.  Historically Liferay has used mostly velocity, but they use freemarker for the ServiceBuilder scripting and there was (a few years ago) a push to get away from Velocity in favor of FreeMarker, but I think most of the evangelists have moved on to different soap boxes.&lt;br /&gt;&lt;br /&gt;No, you do not want to just edit Liferay files.  If you need a theme, then do a theme, but don&amp;#39;t try to edit their files directly.  Trust me, it will seam easy now but it will come back to bite you when you attempt a Liferay upgrade.</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2014-05-13T18:55:09Z</dc:date>
  </entry>
  <entry>
    <title>Velocity vs Freemarker</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37759411" />
    <author>
      <name>Patrick Hisshion</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=37759411</id>
    <updated>2014-05-13T15:14:14Z</updated>
    <published>2014-05-13T15:14:14Z</published>
    <summary type="html">Hi All, &lt;br /&gt;&lt;br /&gt;I&amp;#39;m new to Liferay development. With themes I notice that when creating a theme in the IDE, by default the template files are all .ftl. However when I download themes online, they all seem to be .vm. This includes alot of templates that are in Liferay itself, not just within the themes. &lt;br /&gt;&lt;br /&gt;When creating templates should I create new .ftl or .vm files? Could I also just edit the existing .ftl files in the theme?&lt;br /&gt;&lt;br /&gt;Thanks</summary>
    <dc:creator>Patrick Hisshion</dc:creator>
    <dc:date>2014-05-13T15:14:14Z</dc:date>
  </entry>
</feed>
