don't like this unclean & retard approach. better use $templatedir for now.


On Fri, Feb 21, 2014 at 4:29 PM, Valentin Kuznetsov <
notifications@github.com> wrote:

> In src/python/DAS/web/tools.py:
>
> > @@ -97,8 +97,15 @@ def templatepage(self, ifile=None, *args, **kwargs):
> >              search_list.append(kwargs)
> >          templatefile = "%s/%s.tmpl" % (self.templatedir, ifile)
> >          if os.path.exists(templatefile):
> > -            template = Template(file=templatefile, searchList=search_list)
> > -            return template.respond()
> > +            # little workaround to fix '#include', chdir to template dir
> > +            curdir = os.curdir
>
> Ok, to avoid both problems I propose slightly different solution. Can you
> read hints_via_ajax.tmpl content in a code and then pass it to
> templatefile. This will eliminate #include whatsoever. Just make
> approrpriate comment in templatefile saying that we read ajax code and pass
> it into template.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/dmwm/DAS/pull/4154/files#r9948832>
> .
>