Skip to content

Template Replace Option #35

Description

@shellster

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>

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions