The Snippet functionality gives you the possibility to use a piece of markup  from one place in any template (source) and render the snippet in an other place in the same template or any other template (destination).

Define a snippet source with SnippetStart and SnippetEnd tags. 

If there are 2 identical snippet content sections, they are stacked in order of appearance.

Select the code snippet in your template like this:

@SnippetStart("mySnippet") ..some code to move... @SnippetEnd("mySnippet")

Insert this tag where the snippet should be rendered (same or another template):



<!--@SnippetStart(mySnippet)--> ..some code to move... <!--@SnippetEnd(mySnippet)--> <!--@Snippet(mySnippet)-->