google / zoekt

Fast trigram based code search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use template files instead of strings

axispx opened this issue · comments

zoekt uses in-memory template strings instead of separate files which makes it difficult to add features to the web interface. Moving these strings to the files should be the way forward to make development of the web interface easier.

I see that there is an option to dump the template but I'm not really sure why it was the design decision. Can somebody clear it up for me?

I wanted to add some GUI filters and I removed the template strings and added template files but I don't know if the project wants go in that direction.

filters

there already is an option, see here

templateDir := flag.String("template_dir", "", "set directory from which to load custom .html.tpl template files")