Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask YC : java template engine for generating source code?
2 points by randomhack on April 14, 2008 | hide | past | favorite | 3 comments
Have any of you used stringtemplate, velocity, freemarker or others for generating structured text of any kind? Any experiences or thoughts? Stringtemplate seems to be purely functional and claims to enforce strict model view separation. Is StringTemplate good in real world?


ANTLR is quite popular and uses StringTemplate to generate source code, for several different target languages. So I would consider that to be pretty good real world use of it.


Have a look at http://code-generation.net and Manning's Code Generation in Action.


The website is for some product for web development. My application is not even remotely related to web-development. Should have clarified I guess. I am generating C source code from a DSL.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: