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

Template Replace Option #35

Open
shellster opened this issue Mar 5, 2014 · 1 comment
Open

Template Replace Option #35

shellster opened this issue Mar 5, 2014 · 1 comment

Comments

@shellster
Copy link

I would love to see an enhancement which would allow the replacement of an existing element with the new template. I envision it working like so:

DOM BEFORE:
<div id="d1"></div>
<div id="d2"></div>
<div id="d3"></div>

<script>
$('#d2').loadTemplate('#whatevertemplate', {text: "hello"}, {replace: true});
</script>

DOM AFTER:
<div id="d1"></div>
<div id="whatever">hello</div>
<div id="d3"></div>

@codepb
Copy link
Owner

codepb commented Mar 21, 2014

This doesn't seem to hard, so again, don't see why this couldn't be added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants