graphite-api
graphite-api copied to clipboard
templating
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
templatehttp param and graphTemplates.conf, glyph.py also refers to the file, but the file is not used and the param does nothing.
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.
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.
templates are quite useful
+1