NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page Tutorial: introduction to FreeMarker

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search
7 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 04-08-2008, 04:24 PM THREAD STARTER               #1 (permalink)
Senior Member
Join Date: Aug 2007
Posts: 2,153
jido has a reputation beyond reputejido has a reputation beyond reputejido has a reputation beyond reputejido has a reputation beyond reputejido has a reputation beyond reputejido has a reputation beyond reputejido has a reputation beyond reputejido has a reputation beyond reputejido has a reputation beyond reputejido has a reputation beyond reputejido has a reputation beyond repute
 



Tutorial: introduction to FreeMarker


FreeMarker is a Java template engine to generate pages from templates. This is to get a first taste of FreeMarker.

The first example starts with a template page containing:

Quote:
${pet} does ${number} little hops
That produces a page with the text:
????: NamePros.com http://www.namepros.com/code/455241-tutorial-introduction-to-freemarker.html

Quote:
Bunny does 6 little hops
All the FreeMarker work is done in these 3 Java lines:

Code:
		Configuration cfg = new Configuration();
		Template tpl = cfg.getTemplate(template);
		tpl.process(datamodel, output);
http://bredelet.com/Denis/FreeMarker first steps.html
Hope that is useful to someone!
__________________
______________________________________
Help with crosswords http://lettercombination.com
Pitfalls of Java http://javasyntax.com
_______________ f o r . s a l e ______________
jido is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 07:21 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger