Replies: 1 comment 1 reply
-
Thanks for the suggestion, this does seem like a handy little feature. Generally, I'd be happy to take a pull request for something like this. There are some design decisions that should be discussed. As you mention, this wouldn't be backward compatible. Maybe in the document, instead of using |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there.
I'm finally getting around to starting our first proper implementation of RMLUI in a project. One of the first things I've run into is a fairly simple concept - the template system is really nice, but also really limiting in that it can only replace one element (the "content" id); this means for something like a basic windowing system, you're forced to take many extra steps just to, for instance, set the title of a templated window.
Conceptually, I wonder if templates could be expanded to support multiple endpoints, so that a template like this:
could have both the title and content element filled at load time. I think the most convenient and obvious way to approach this would be to just have templates replace matching IDs, so for the template above, you could fill both in like this:
Of course this is just a very basic minimal sample, it doesn't make sense at this scope since you might as well just replace the whole content anyways, but templates as they are seem very limiting to what they can offer which seems against the purpose of re-use if we have to do a bunch of boilerplate on the code side; I wonder if expanding the scope very slightly (in a backwards compatible way; obv this sample above isn't) would be a benefit.
Beta Was this translation helpful? Give feedback.
All reactions