Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cross-project-issues-dev] Freemarker

Hi,

In e(fx)clipse we use Xtend to as a template language. One of the
strengths is that Xtends multi-line and indent support so it is made for
code generation (and much more).

Take a look at our Xtend templates:
-
http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/tooling/org.eclipse.fx.ide.pde.ui.e4/src/org/eclipse/fx/ide/pde/ui/e4/project/template
-
http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/tooling/org.eclipse.fx.ide.jdt.ui/src/org/eclipse/fx/ide/jdt/ui/internal/wizard/templates

You talked about wizards, project creation, ... so what we at
e(fx)clipse have is a language we call rrobot which is a DSL to specify
eclipse project creations e.g. this is our e4 project creation process
expressed in it:
http://git.eclipse.org/c/efxclipse/org.eclipse.efxclipse.git/tree/bundles/tooling/org.eclipse.fx.ide.pde.ui.e4/generator-tasks/e4App.rtask

We don't have an C/C++ support ;-)

Before going Jet or Freemarker I'd look at Xtend, it has the best
tooling with it you can get for a template language.

Tom


On 22.10.13 16:28, Doug Schaefer wrote:
> I got misled by it's web page: http://www.eclipse.org/xtend/. Java 10
> apparently :)
> 
> I'll take another look for Jet. Thanks Paul.
> 
> Doug
> 
> From: Ed Willink <ed@xxxxxxxxxxxxx <mailto:ed@xxxxxxxxxxxxx>>
> Reply-To: Cross project issues <cross-project-issues-dev@xxxxxxxxxxx
> <mailto:cross-project-issues-dev@xxxxxxxxxxx>>
> Date: Tuesday, 22 October, 2013 10:23 AM
> To: Cross project issues <cross-project-issues-dev@xxxxxxxxxxx
> <mailto:cross-project-issues-dev@xxxxxxxxxxx>>
> Subject: Re: [cross-project-issues-dev] Freemarker
> 
> Hi Doug
> 
> Xtend is many things, and so it is easy to get misled by today's hype.
> 
> Xtend is not a Java language extension; it has many similarities but
> significant differences too; beauty is in the eye of the beholder.
> 
> One of Xtend's really useful features is its triple quote operator that
> allows you to embed a text template within Java-ish code. Within the
> templates you can use guilemets to have inner control, so overall Xtend
> supports control within text within control; very powerful, and the
> whitespace tooling in the editor is good too.
> 
> For text-intensive code I can strongly recommend Xtend. However you may
> choose to follow my example of keeping all non-text functionality in
> Java base classes so that you only use Xtend as a template language and
> plain Java for all other things.
> 
>     Regards
> 
>         Ed Willink
> 
> On 22/10/2013 14:50, Doug Schaefer wrote:
>> Xtend is a Java language extension, no? I'm talking about a template
>> engine that we use in the new project wizard to instantiate code
>> templates based on various user selectable options.
>>
>> I was originally thinking of Jet, but I can't seem to find it anymore.
>> Whatever happened to it?
>>
>> Doug.
>>
>> From: Henrik Rentz-Reichert <hrr@xxxxxxxxx <mailto:hrr@xxxxxxxxx>>
>> Reply-To: Cross project issues <cross-project-issues-dev@xxxxxxxxxxx
>> <mailto:cross-project-issues-dev@xxxxxxxxxxx>>
>> Date: Tuesday, 22 October, 2013 2:43 AM
>> To: Cross project issues <cross-project-issues-dev@xxxxxxxxxxx
>> <mailto:cross-project-issues-dev@xxxxxxxxxxx>>
>> Subject: Re: [cross-project-issues-dev] Freemarker
>>
>> Doug,
>>
>> have you considered using Xtend?
>>
>> -Henrik
>>
>> Am 21.10.2013 21:47, schrieb Doug Schaefer:
>>> Has anyone tried to get Freemarker into Orbit? Or is there a better
>>> template engine that people are using. CDT has it's own but I'd like
>>> to use something more standard (and better).
>>>
>>> Thanks,
>>> Doug.
>>>
>>>
>>>
>>> _______________________________________________
>>> cross-project-issues-dev mailing list
>>> cross-project-issues-dev@eclipse.orghttps://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
>>
>>
>>
>> _______________________________________________
>> cross-project-issues-dev mailing list
>> cross-project-issues-dev@eclipse.orghttps://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
>>
>>
>> No virus found in this message.
>> Checked by AVG - www.avg.com <http://www.avg.com>
>> Version: 2014.0.4158 / Virus Database: 3614/6769 - Release Date: 10/21/13
>>
> 
> 
> 
> _______________________________________________
> cross-project-issues-dev mailing list
> cross-project-issues-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/cross-project-issues-dev
> 



Back to the top