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

enhance Template7.registerPartial #9

Closed
nimo23 opened this issue Aug 13, 2015 · 1 comment
Closed

enhance Template7.registerPartial #9

nimo23 opened this issue Aug 13, 2015 · 1 comment

Comments

@nimo23
Copy link

nimo23 commented Aug 13, 2015

Would be nice to enhance this method:

  • Template7.registerPartial(name, template)

with templateURL

Template7.registerPartial(name, templateURL)

where templateURL is a template.html file, which includes the template.

It is not good maintainable to have html-strings in javascript..

@nolimits4web
Copy link
Owner

There is no includes in JS. Only option is to do Ajax request to maintain it, but it will produce more errors and questions, as it is asynchronous. So you can do it by yourself

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

2 participants