drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacques Nadeau <jacq...@apache.org>
Subject Re: [DISCUSS] Reduce use of freemarker templates for functions
Date Tue, 28 Apr 2015 18:58:19 GMT
That's much nicer.  Isn't entirely automated but helps avoid misdirection.

On Tue, Apr 28, 2015 at 2:36 PM, Jinfeng Ni <jni@apache.org> wrote:

> Seems we could use FreeMarker special variable to add the template name (or
> any other addition information) in the generated source code. See [1].
>
> Add the following line to the template will be sufficient for that purpose.
>
> // Source code generated using FreeMarker template ${.template_name}
>
>
> [1]. http://freemarker.org/docs/ref_specvar.html
>
>
> On Tue, Apr 28, 2015 at 8:52 AM, Ted Dunning <ted.dunning@gmail.com>
> wrote:
>
> > On Tue, Apr 28, 2015 at 8:48 AM, Jacques Nadeau <jacques@apache.org>
> > wrote:
> >
> > > >
> > > > >> At minimum, we need put the "template file name" in the comment
> > >
> > >
> > > I actually disagree with this.  I'm sure there is a programmatic way to
> > > solve this rather than trying to maintain this by hand in.
> > >
> >
> >
> > He didn't say he wanted to put the file name in by hand.
> >
> > Sounds like you agree about intent and only possibly disagree about
> method.
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message