graphite-api icon indicating copy to clipboard operation
graphite-api copied to clipboard

templating

Open Dieterbe opened this issue 11 years ago • 3 comments

in graphite-web/webapp/graphite/render/glyph.py the method loadTemplate reads the template from the config file. graphite-api doesn't do this.

  • it has been the case since initial release, yet this is not mentioned anywhere in the changelog (i.e. implying that the behavior is the same as graphite-web).
  • the docs still mention the template http param and graphTemplates.conf, glyph.py also refers to the file, but the file is not used and the param does nothing.

Dieterbe avatar Jul 14 '14 20:07 Dieterbe

I'd be in favor of dropping the template-related code and document that graphite-api doesn't have templates and passing &template= is a no-op.

brutasse avatar Jul 14 '14 20:07 brutasse

why? i would argue that templates are quite useful, and easy to implement. do you think people should append all style parameters to every png url? that can get cumbersome.

Dieterbe avatar Jul 14 '14 20:07 Dieterbe

templates are quite useful

+1

zzl0 avatar Nov 16 '16 06:11 zzl0