Hey! Thanks for this project. Plates is flippin awesome! I really love doing dynamic html without DSL.
If there's a better place for questions rather than here please let me know.
I'm using Plates for a project I'm working on which will need to have multi-language support in the near future. My plans thus far are to use the gettext utility.
What I'd like to do is get the innerHTML of a tag identified for translation (maybe with a translate='true' attribute), do a little hacking on it to separate the innerHTML into gettext keys, and replace the innerHTML with the translated innerHTML.
I haven't seen a way to get the innerHTML of an element with plates thus far. So, my plans are to modify use(function) to return the innerHTML of the tag specified.
I'm curious:
Am I missing something? I'm very new to this project and there may be a way to do what I want that I haven't seen yet.
If this feature isn't included in plates, do you (the designers/writters of Plates) think that incorporating this feature into use is the best option? If not, please feel free to make suggestions!
Hey! Thanks for this project. Plates is flippin awesome! I really love doing dynamic html without DSL.
If there's a better place for questions rather than here please let me know.
I'm using Plates for a project I'm working on which will need to have multi-language support in the near future. My plans thus far are to use the gettext utility.
What I'd like to do is get the innerHTML of a tag identified for translation (maybe with a translate='true' attribute), do a little hacking on it to separate the innerHTML into gettext keys, and replace the innerHTML with the translated innerHTML.
I haven't seen a way to get the innerHTML of an element with plates thus far. So, my plans are to modify
use(function)
to return the innerHTML of the tag specified.I'm curious: Am I missing something? I'm very new to this project and there may be a way to do what I want that I haven't seen yet.
If this feature isn't included in plates, do you (the designers/writters of Plates) think that incorporating this feature into
use
is the best option? If not, please feel free to make suggestions!