Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question, not Issue: Getting the innerHTML of a tag for multi-language support #114

Open
joshterrell805 opened this issue Dec 21, 2013 · 0 comments

Comments

@joshterrell805
Copy link

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!

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

No branches or pull requests

1 participant