paulopes / panel-components

HTML components for Panel templates
Apache License 2.0
6 stars 1 forks source link

Consider whether the tags should be functions or classes? #17

Open MarcSkovMadsen opened 4 years ago

MarcSkovMadsen commented 4 years ago

I have a feeling it would be better to make the tags in the tags.py file child classes of Component child. Right now they are tag_function functions.

Maybe it does not matter. Right now it is just a feeling.

The implication would be that the tags should be PascalCase and that the make_a_tag_function should return a Class instead of a function.

paulopes commented 4 years ago

I thought that I should use functions where class functionality is not really required, as functions are more lightweight.