Things I have tried
I have tried:
<% tR += " NEW CONTENT" %>
which gives:
My OLD Content NEW CONTENTMy OLD Content
I have tried:
<% tR += " NEW CONTENT" %>
which gives:
NEW CONTENT NEW CONTENTMy OLD Content
I have tried:
<% tp.file.content %> NEW CONTENT
which gives:
My OLD Content NEW CONTENTMy OLD Content
I have tried:
<% tp.file.content.replace(tp.file.content, tp.file.content + " NEW CONTENT") %>
which gives:
My OLD Content NEW CONTENTMy OLD Content
I have tried:
<% tp.file.content = tp.file.content.replace(tp.file.content, tp.file.content + " NEW CONTENT") %>
which gives:
My OLD Content NEW CONTENTMy OLD Content
I have tried:
<%* tR += " New Content" %>
which gives:
New ContentMy OLD Content
What I’m trying to do
All I am trying to do is add some content to the end on the end of an existing file, but I can’t seem to modify the original content at all. It only adds the template to wherever the cursor is (at the start of the file in the example).