<p>I'm loading an html snippet using </p>

<pre><code>$("#TemplateDump").load("Themes/default.template", function() { processTemplate() })
</code></pre>

<p>The html i am loading contains</p>

<pre><code>&lt;div&gt;
`hello ##name##, your age is ##age##. 
your page is &lt;a href="##website##"&gt;here&lt;/a&gt;
&lt;/div&gt;
</code></pre>

<p>I need to replace the ## placeholders with "joe","112" and "www.whatever.com". Is there a more jquery way of doing this rather than using straight javascript .replace? Are there any place holder replacement plugins around? using .replace in IE on the url placeholder just doesnt work either. Dont know why. By the way, the templates cant be changed.</p>

you could make it static
```
```
public class Foo
{
    List<Bar> Bars = new List<Bar>();

    public void AddBar(Bar bar)
    {
        Bars.Add(bar);
        Bar.AddFoo(bar,this);
    }
}

public class Bar
{
    List<Foo> Foos = new List<Foo>();

    // This shouldn't exist.
    public static void AddFoo(Bar bar, Foo foo)
    {
        bar.Foos.Add(foo);
        //foo.AddBar(this); inf recurtion
    }
}
```
```
Not really ideal but it does get the function off the object its self