Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Leo Gong
Velocity or Freemarker, in Liferay?
August 29, 2011 5:55 AM
Answer

Leo Gong

Rank: New Member

Posts: 9

Join Date: June 3, 2011

Recent Posts

Hi everyone,I'm struggling to have a choice between Velocity and Freemarker.
Our company plans to create a large website using liferay ,maybe being in a clustered environment in the future.
We hope to own a powerful and flexible theme system through our modification and development .
So , which template engine will be better? Who can give me some advice?
Thanks very much!
.
Julien Bonjean
RE: Velocity or Freemarker, in Liferay?
August 29, 2011 9:41 AM
Answer

Julien Bonjean

Rank: Junior Member

Posts: 57

Join Date: June 10, 2009

Recent Posts

I don't have much experience with Freemarker, but I can say it is currently a bit bugged in Liferay 6.1 (I suppose the integration is still a work in progress), whereas Velocity integration is quite robust.
David H Nebinger
RE: Velocity or Freemarker, in Liferay?
August 29, 2011 10:32 AM
Answer

David H Nebinger

Community Moderator

Rank: Liferay Legend

Posts: 11060

Join Date: September 1, 2006

Recent Posts

Yeah, Velocity is the current standard for Liferay, but they support FM for templating and it is my understanding that they are planning to move to FM as the standard at some point in the future.

Even if they do make the switch, I'd expect some Velocity support to stay around, considering that most of the current theming work outside of Liferay is Velocity based...
Mika Koivisto
RE: Velocity or Freemarker, in Liferay?
August 29, 2011 12:55 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1512

Join Date: August 7, 2006

Recent Posts

Velocity support in Liferay is more mature but we plan on supporting both so it's really matter of your own preference and we'd love to get feedback on how well the Freemarker themes and WCM templates work for you.
Leo Gong
RE: Velocity or Freemarker, in Liferay?
August 29, 2011 9:23 PM
Answer

Leo Gong

Rank: New Member

Posts: 9

Join Date: June 3, 2011

Recent Posts

Yeah, I also don't have much experience with Freemarker ,even being in trouble when I configure the Freemarker in liferay.
So maybe Velocity is my better choice now, considering all of your advice, but Freemarker would probably be taken into account in our other projects in the future.
Anil Sunkari
RE: Velocity or Freemarker, in Liferay?
August 29, 2011 10:30 PM
Answer

Anil Sunkari

Rank: Expert

Posts: 427

Join Date: August 11, 2009

Recent Posts

Hi Leo,

I suggest Velocity Template Engine.... as per my experience,it is quite ease in managing/utilizing template & very user friendly.

Regards,
Anil Sunkari
Mika Koivisto
RE: Velocity or Freemarker, in Liferay?
August 31, 2011 10:18 AM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1512

Join Date: August 7, 2006

Recent Posts

I personally like Freemarker more because it is strict and reports errors in the template really accurately. Velocity just eats up some errors so that you might not even notice that your template is not working as you intended because of a typo in variable name etc.
Hu Jack
RE: Velocity or Freemarker, in Liferay?
June 16, 2013 7:52 PM
Answer

Hu Jack

Rank: New Member

Posts: 3

Join Date: June 13, 2013

Recent Posts

Hello everyone, how about now? I want to use freemarker with liferay, and I'm searching for some relative demos. Do you have some suggestions?
Really thanks.