No way to add HTML link attributes or add Tag attributes

Issue #150 new
Johann Petrak created an issue

There seems to be no way to add attributes to the generated HTML for Tag or HRef, which would be extremely useful for e.g. making it possble to open links in a separate window, react to clicks using javascript, use styling etc.

This could be easily achieved by accepting arbitrary keyword arguments and storing them within the Tag/HRef to be used for rendering HTML later; for other rendering targets, these would get ignored or used as appropriate.

Comments (1)

  1. Johann Petrak reporter

    Sadly, when looking at the design, it seems that this is not flexible enough as the code does not pass the object to render to the backend but just selected information about the object, which is bad. So for rendering a tag, only the tag name and the text is passed which is extremely limiting.

  2. Log in to comment