Skip to content

Conversation

@delsim
Copy link
Contributor

@delsim delsim commented Aug 7, 2018

Added the generation and optional use of class name and unique identifiers for app templates.

This addresses #20

One template tag - plotly_class - is provided to generate a list of names, suitable for use as css names or identifiers, given a django-plotly-dash app and optional prefix and postfix strings.

A second tag - plotly_app_identifier - returns the internal (slug-friendly) name for the app, annotated with an optional postfix string.

The user has to decide how to wield these tools - it is hard to see how the choice between class name and identifier can be automated, and in the case of identifiers how to ensure uniqueness when multiple apps are present.

@GibbsConsulting GibbsConsulting merged commit b94e432 into GibbsConsulting:master Aug 7, 2018
@delsim delsim deleted the frame_identifiers branch August 7, 2018 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants